closing sockets

Started by
0 comments, last by AlexM 21 years, 11 months ago
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...
Advertisement
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.

This topic is closed to new replies.

Advertisement