Suoritettu

Debug an issue in existing C++ program on data files questing from ftp server --

Microsoft Visual Studio/C++/curl.h/netcdf.h

Issue specification:

The program was written specifically for accessing data of the 'GLBu0.08' grids through Hycom

[login to view URL]

The program worked well for this grid but FAILED TO FIND any files when I attempted to access the data of 'GLBv0.08' grids.

The two worked and failed ftp addresses being:

ftp://[login to view URL]

and

ftp://[login to view URL]

My guess: The file names are different in lengths. GLBu0.08 files have substrings 'glb' while GLBv0.08 files have substring 'glbv'

It might be related to the curl options.

std::string buffer("");

if (curl) {

curl_easy_setopt(curl, CURLOPT_URL, yInfo.ftpFileBase.c_str());

curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);

curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void*)(&buffer));

/* list only */

curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, 1L);

int ret = curl_easy_perform(curl);

if (ret != CURLE_OK) {

std::cout << "Failled to read file names. Error code: "<< ret <<std::endl;

}

curl_easy_cleanup(curl);

}

For the worked case, the curl returned 'buffer' with good length ([login to view URL]() = 11368), whereas for the failed case the curl returned 'buffer' with bad length ([login to view URL]() = 5), which might cause the issue.

Taidot: .NET, C-ohjelmointi, C# -ohjelmointi, C++ -ohjelmointi, tietojärjestelmäarkkitehtuuri

Näytä lisää: excel large data files, program data input, program merge files, create program compares files, amazon data files, vb6 program extract files, program data entry excel, program ex4 files, create merge program text files, net storing data files, program data strcture, free aiml data files, accessing xml data files alfresco, photoshop excel data files, 205232 require_once c program files wamp www basc pruebabasc system core codeigniter php, graph data structure in c program, notice undefined variable _post in c program files easyphp www noura sawssen fichier php on line 2 notice undefined variable _po, parse error syntax error unexpected ouverte t_string in c program files easyphp devserver 14.1 vc9 data localweb dossier1 fichie, patching search & replace patch loading file c program files x86 internet download manager idman exe can t find pattern trying n, url not found c program files x86 android android sdk temp googleanalyticsandroid_2 0beta5 zip access is denied

Tietoa työnantajasta:
( 3 arvostelua ) 2900 KINGSTOWN ROAD, United States

Projektin tunnus: #21192728

Myönnetty käyttäjälle:

ciastsamson

Hi, I have developed several projects using curl library. Including network communication with web server. I have rich experience. I will finish in time. Best regards.

$100 USD 1 päivässä
(24 Arvostelua)
5.1

6 freelanceria on tarjonnut keskimäärin 147$ tähän työhön

erndsglts

Hello, I have 9 years experience in QT, C++on linux,windows and Mac. i doneandroid application also using Qt frame work. We can discuss more information in chat.

$250 USD 3 päivässä
(42 arvostelua)
5.8
Valuesolutions

Hello, i have read the details provided..please contact me to discuss more on the project deadline and some other few things

$150 USD 7 päivässä
(15 arvostelua)
5.1
topexpert713

Hi, Nice to meet you! I am very interesting your project and I am confident of I can help your job. I'm a professional C/C++/C# expert with over 7 years of experience. Seems to be an interesting work and good opportun Lisää

$140 USD 7 päivässä
(1 arvostelu)
1.5
aleksandr201906

Hi, Sir! Welcome! I have just read your job description carefully. As a result I have so confidence. I promise the highest product's quality and the best service. Please award to me your job! I sincerely help you Lisää

$140 USD 7 päivässä
(1 arvostelu)
0.0
bibish01

Hello! Nice to meet you. I read your description and I am sure that I am very interested in your project. I have rich experience with c++ programming. I am the expert. But I have some questions about your project. Cont Lisää

$100 USD 3 päivässä
(0 arvostelua)
0.0