Archived

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

AlexM

closing sockets

Recommended Posts

AlexM    122
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
Guest Anonymous Poster   
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