|
-
November 7th, 2012, 08:17 AM
#3
Re: CAsyncSocket close problem
 Originally Posted by VictorN
What do you mean by "delete object CAsyncSocket"?
It usually depends upon what you are doing in these overrides.
In OnAccept, for example, you first have to check the most recent error on a socket which is passed in this override.
Class C_Server posts the listen and when the client solicits a connection the accept() method creates an instance of C_Server_Send to carry on the conversation with the client. That object is newed on the heap and must be deleted.
Regarding the overrides for On*(), none of them have an argument so I don't understand the phrase "... on a socket which is passed in this override." The word "passed" useally refers to items in the argument list.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|