Click here to Skip to main content

ATL / WTL / STL

 
GeneralRe: CAsyncSocket Send( arguments ) Pinmemberbkelly1330-Sep-12 6:44 
GeneralRe: CAsyncSocket Send( arguments ) PinmvpRichard MacCutchan30-Sep-12 7:10 
GeneralRe: CAsyncSocket Send( arguments ) Pinmemberpasztorpisti30-Sep-12 7:38 
GeneralRe: CAsyncSocket Send( arguments ) [modified] Pinmemberbkelly1330-Sep-12 7:16 
GeneralRe: CAsyncSocket Send( arguments ) [modified] Pinmemberpasztorpisti30-Sep-12 7:31 
Questionget instance of object (in exe) from dll caller Pinmemberkhaliloenit17-Sep-12 5:38 
AnswerRe: get instance of object (in exe) from dll caller Pinmemberpasztorpisti17-Sep-12 7:57 
GeneralRe: get instance of object (in exe) from dll caller Pinmemberkhaliloenit17-Sep-12 10:32 
JokeRe: get instance of object (in exe) from dll caller Pinmemberpasztorpisti17-Sep-12 14:43 
GeneralRe: get instance of object (in exe) from dll caller Pinmemberpasztorpisti17-Sep-12 14:48 
AnswerRe: get instance of object (in exe) from dll caller PinmvpRichard MacCutchan17-Sep-12 23:16 
AnswerRe: get instance of object (in exe) from dll caller PinmemberStephen Hewitt18-Sep-12 19:49 
QuestionCAsyncSocket Connect says in use Pinmemberbkelly1316-Sep-12 7:07 
Answerunexpected behavior [modified] Pinmemberbkelly1316-Sep-12 11:07 
Following the OP, and per various tutorials I have found, I have created skeleton methods and virtual overrides everywhere I think there should be one   I have also set breakpoints in all these methods.   The results are not expected and quite interesting.
 
Note: The send time class is instantiated in the C_Server::Accept() method called by the Accept button in the dialog and passed into the Accept() method that I think is the one from the base class CAsyncSocket.   Is that the correct action to perform?
 
After clicking the Connect for the Client class, the breakpoint is activated in C_Client::OnConnect( int nErrorCode)
 
The error code said the port was in use, but I am now thinking that maybe the error code should be expected and considered normal.   Maybe I should write code in here for when the connect is successful.   Per an example this method has code to call CAsyncsocket::OnConnect( int x );   I presume that is the base class.   That function has no code.   Should there be anything there?
 
Click Run in the debugger to see what happens and,…
 
The breakpoint in C_Server::OnAccept( int error_code ) is called.   Thanks to an example I found, it calls CAsyncSocket::OnAccept( error_code ) which again is empty.   I am now presuming that despite the earlier error code, the server code, the part within the Windows API that I don’t see, has indeed accepted the connection and it ready to send data to and receive data from the client.   Is this indeed the case?   If so, is there something that should be done in this method?
 
Clicking the debugger run one more time,
The breakpoint in C_Client::OnSend( int error_code ) is called.
 
Now this is puzzling.   My code does not send anything.   Is this telling me the client is expected to send something to the server?   What should it send?
 
Thanks for your time

-- modified 16-Sep-12 16:45pm.
AnswerRe: CAsyncSocket Connect says in use PinmemberRichard Andrew x6416-Sep-12 12:53 
AnswerRe: CAsyncSocket Connect says in use Pinmemberpasztorpisti16-Sep-12 13:05 
GeneralRe: CAsyncSocket Connect says in use Pinmemberbkelly1316-Sep-12 13:55 
GeneralRe: CAsyncSocket Connect says in use Pinmemberpasztorpisti16-Sep-12 14:09 
GeneralRe: CAsyncSocket Connect says in use Pinmemberbkelly1316-Sep-12 14:17 
GeneralRe: CAsyncSocket Connect says in use Pinmemberpasztorpisti16-Sep-12 14:34 
GeneralRe: CAsyncSocket Connect says in use [modified] Pinmemberbkelly1316-Sep-12 15:07 
Questionbetter version of strcpy() and printf() Pinmemberbkelly1315-Sep-12 11:02 
AnswerRe: better version of strcpy() and printf() PinmentorPaul Watt15-Sep-12 13:33 
GeneralRe: better version of strcpy() and printf() Pinmemberbkelly1315-Sep-12 16:34 
GeneralRe: better version of strcpy() and printf() PinmentorPaul Watt15-Sep-12 16:45 
GeneralRe: better version of strcpy() and printf() Pinmemberbkelly1315-Sep-12 17:23 
GeneralRe: better version of strcpy() and printf() Pinmemberpasztorpisti16-Sep-12 7:54 
GeneralRe: better version of strcpy() and printf() PinmvpRichard MacCutchan16-Sep-12 1:10 
AnswerRe: better version of strcpy() and printf() PinmemberRichard Andrew x6415-Sep-12 18:01 
AnswerRe: better version of strcpy() and printf() PinmvpRichard MacCutchan16-Sep-12 1:09 
AnswerRe: better version of strcpy() and printf() Pinmemberpasztorpisti16-Sep-12 2:37 
AnswerRe: better version of strcpy() and printf() PinmemberStephen Hewitt18-Sep-12 1:29 
Questionget a number into static text control Pinmemberbkelly1313-Sep-12 18:05 
AnswerRe: get a number into static text control PinmvpRichard MacCutchan13-Sep-12 22:52 
GeneralRe: get a number into static text control Pinmemberbkelly1314-Sep-12 16:00 
GeneralRe: get a number into static text control PinmentorPaul Watt14-Sep-12 16:36 
GeneralRe: get a number into static text control PinmvpRichard MacCutchan15-Sep-12 0:02 
GeneralRe: get a number into static text control Pinmemberbkelly1315-Sep-12 6:14 
GeneralRe: get a number into static text control PinmvpRichard MacCutchan15-Sep-12 6:42 
QuestionMirroring system imagelist Pinmemberhuzifa3011-Sep-12 16:27 
QuestionCAsyncSocket, first application [modified] Pinmemberbkelly139-Sep-12 6:26 
AnswerRe: CAsyncSocket, first application PinmentorPaul Watt14-Sep-12 16:47 
QuestionAfxGetThread vs GetCurrentThreadID Pinmemberkishorekumarnaik6-Sep-12 7:52 
AnswerRe: AfxGetThread vs GetCurrentThreadID PinmemberJiří Miklík7-Sep-12 1:24 
Questionerror C2039: 'abort' : is not a member of 'std' PinmemberKASR13-Sep-12 0:35 
AnswerRe: error C2039: 'abort' : is not a member of 'std' PinmvpRichard MacCutchan3-Sep-12 1:50 
GeneralRe: error C2039: 'abort' : is not a member of 'std' PinmemberKASR13-Sep-12 2:44 
GeneralRe: error C2039: 'abort' : is not a member of 'std' PinmvpRichard MacCutchan3-Sep-12 3:21 
AnswerRe: error C2039: 'abort' : is not a member of 'std' PinmemberStephen Hewitt3-Sep-12 17:54 
GeneralRe: error C2039: 'abort' : is not a member of 'std' PinmemberKASR13-Sep-12 20:46 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150123.1 | Last Updated 10 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid