Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Method to get file path Pin
led mike25-Mar-08 10:12
led mike25-Mar-08 10:12 
GeneralRe: Method to get file path Pin
nvphap25-Mar-08 16:55
nvphap25-Mar-08 16:55 
GeneralRe: Method to get file path Pin
Mark Salsbery25-Mar-08 17:07
Mark Salsbery25-Mar-08 17:07 
GeneralRe: Method to get file path Pin
nvphap25-Mar-08 21:35
nvphap25-Mar-08 21:35 
GeneralRe: Method to get file path Pin
nvphap26-Mar-08 0:42
nvphap26-Mar-08 0:42 
GeneralRe: Method to get file path Pin
ramana.g26-Mar-08 2:06
ramana.g26-Mar-08 2:06 
QuestionWhich is Better Pro*C/C++ or C# ??? Pin
Amit4u25-Mar-08 7:02
Amit4u25-Mar-08 7:02 
GeneralRe: Which is Better Pro*C/C++ or C# ??? Pin
Randor 25-Mar-08 7:18
professional Randor 25-Mar-08 7:18 
GeneralRe: Which is Better Pro*C/C++ or C# ??? Pin
Maximilien25-Mar-08 7:19
Maximilien25-Mar-08 7:19 
GeneralRe: Which is Better Pro*C/C++ or C# ??? Pin
Member 75496025-Mar-08 8:43
Member 75496025-Mar-08 8:43 
GeneralNeed help locating source of errors Pin
97C5ENVY25-Mar-08 6:03
97C5ENVY25-Mar-08 6:03 
GeneralRe: Need help locating source of errors Pin
Randor 25-Mar-08 6:15
professional Randor 25-Mar-08 6:15 
GeneralRe: Need help locating source of errors Pin
Mark Salsbery25-Mar-08 6:19
Mark Salsbery25-Mar-08 6:19 
GeneralSelect Item in ListView Control In VC++ 6 Win32 API Pin
bhat25-Mar-08 4:25
bhat25-Mar-08 4:25 
QuestionRe: Select Item in ListView Control In VC++ 6 Win32 API Pin
David Crow25-Mar-08 5:24
David Crow25-Mar-08 5:24 
GeneralCFtpConnection::Close Pin
William Engberts25-Mar-08 4:22
William Engberts25-Mar-08 4:22 
Hi all,
I am writing a multi-threaded program that runs multiple Ftp clients with different transfer types to connect to different ftp servers. The general sequence of each session is:
CInternetSession::CInternetSession ();
CInternetSession::GetFtpConnection ();
.....
Do all kinds of weird and wonderfull things like get, put, pwd etc.
.....
CFtoConnection::Close ();
delete m_FtpConnection;
CInternetSession::Close ();
delete m_Session;

Basically it all works as expected. The only problem is that the ftp server's log always ends with:
0325 15:05:12 (00000984) 172.29.9.67 connection aborted
0325 15:05:12 (00000984) 172.29.9.67 connection closed
and I don't like the "connection aborted" part, since my clients will probably come back to me asking what the hell is going on here!!!!

It does not matter if I remove the close statements or the delete statements. Only when I remove the whole close and delete part, will I not get the aborted message. I then however also not get the "connection closed", so that in a next cycle the ftp server's log show things like:
0325 14:24:20 (00000fa8) 172.29.9.67 connection reset
0325 14:24:20 (00000fa8) 172.29.9.67 connection closed

When I use the standard window ftp manually and do something there, then I see a log like:
0325 14:52:05 (00001084) NBK0188.cew.centric.lan D(0) 172.29.9.67 user1 QUIT
0325 14:52:05 (00001084) NBK0188.cew.centric.lan S(0) 172.29.9.67 user1 logoff RBlush | :O DBlush | :O PBlush | :O
0325 14:52:05 (00001084) 172.29.9.67 connection closed
0325 14:59:38 (000017a8) 172.29.9.67:2235 connected to 172.29.9.67:21
The quit probably coming from the "bye" command, however I do not see any equivalent in the CFtpConnection or CInternetSession classes.

Does anyone have any bright ideas on the subject? Would be greatly apreciated!

Thanks in advance,
William
GeneralRe: CFtpConnection::Close Pin
led mike25-Mar-08 5:32
led mike25-Mar-08 5:32 
GeneralRe: CFtpConnection::Close Pin
William Engberts25-Mar-08 23:19
William Engberts25-Mar-08 23:19 
GeneralRe: CFtpConnection::Close Pin
led mike26-Mar-08 5:07
led mike26-Mar-08 5:07 
GeneralRe: CFtpConnection::Close Pin
William Engberts27-Mar-08 0:56
William Engberts27-Mar-08 0:56 
GeneralRe: CFtpConnection::Close Pin
led mike27-Mar-08 5:19
led mike27-Mar-08 5:19 
GeneralRe: CFtpConnection::Close Pin
Randor 25-Mar-08 6:05
professional Randor 25-Mar-08 6:05 
GeneralRetreive Createion and Modification time for Remote file Pin
chetanjoshi925-Mar-08 4:14
chetanjoshi925-Mar-08 4:14 
GeneralRe: Retreive Createion and Modification time for Remote file Pin
Peter Weyzen25-Mar-08 19:45
Peter Weyzen25-Mar-08 19:45 
GeneralNDIS Driver Development Pin
Eakalavya25-Mar-08 3:26
Eakalavya25-Mar-08 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.