• Advertisement

Archived

This topic is now archived and is closed to further replies.

closing sockets

This topic is 5777 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m using CAsyncSocket class. I connect to a peer socket and when I call Close() there is an access violation (in some part of mfc code). Isn''t there a way to disconnect from a socket so I can start a new connection? Suprisingly, Close() works for sockets that have been used to Accept() connections ( although VC debugger still lists access violations, but they don''t interrupt the program...) What is goin'' on? Thanks in advance...

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Is CAsyncSocket a class you wrote yourself? Or is it from some other library, MFC etc.?
If it is your own, pasting some code in here (such as the Close() function) would probably help.

Share this post


Link to post
Share on other sites

  • Advertisement