Quote Originally Posted by VictorN View Post
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.