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

C / C++ / MFC

 
GeneralRe: Redirection in command line "<" Pin
David Crow26-Mar-08 4:10
David Crow26-Mar-08 4:10 
QuestionHow to insert a child form? Pin
TooShy2Talk25-Mar-08 16:48
TooShy2Talk25-Mar-08 16:48 
QuestionUsing CFileDialog? Pin
dipuks25-Mar-08 15:59
dipuks25-Mar-08 15:59 
AnswerRe: Using CFileDialog? Pin
David Crow25-Mar-08 16:11
David Crow25-Mar-08 16:11 
GeneralCompare and merge Pin
KirkNarine25-Mar-08 9:15
KirkNarine25-Mar-08 9:15 
GeneralRe: Compare and merge Pin
led mike25-Mar-08 10:14
led mike25-Mar-08 10:14 
AnswerRe: Compare and merge Pin
Maxwell Chen25-Mar-08 17:50
Maxwell Chen25-Mar-08 17:50 
QuestionMethod to get file path Pin
nvphap25-Mar-08 8:55
nvphap25-Mar-08 8:55 
GeneralRe: Method to get file path Pin
David Crow25-Mar-08 10:05
David Crow25-Mar-08 10:05 
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

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.