Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

137
Visualizações
How to set endpoint for storage service compatible with s3 by using AWSSDKCPP?

I am writing an APP talking with 3rd (no aws) storage compatible with s3 (bucket and object service) by using AWS SDK CPP.

I tried to use below code to override endpoint, e.g., http://192.168.10.10:8800, but it doesn't work and return "InternalError". Could anyone please give a hand ? thanks in advance.

{   
Aws::SDKOptions options;
Aws::SDKOptions options;
Aws::SDKOptions options;`
Aws::InitAPI(options);
ClientConfiguration config;
config.scheme = Scheme::HTTP;
config.connectTimeoutMs = 30000;
config.requestTimeoutMs = 30000;
config.endpointOverride = "192.168.10.10:8800"  //customized address
Aws::S3::S3Client *s3client = new Aws::S3::S3Client(Aws::Auth::AWSCredentials("key", "secret"), config);

auto list_buckets_outcome = s3client->ListBuckets();

if( list_buckets_outcome.IsSuccess())
    std::cout << "List OK" << std::endl;
else
    std::cout << "List Error" <<       
           list_buckets_outcome.GetError().GetExceptionName() << 
           list_buckets_outcome.GetError().GetMessage() << std::endl;
    Aws::ShutdownAPI(options); 
}
about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda