关于关闭报错的情况我已经确定!
因为是异步调用~!
在close前需要调用Shutdown
if(mySocket!= null)
{
mySocket.Shutdown(SocketShutdown.Both);
mySocket.Close();
因为是异步调用~!
在close前需要调用Shutdown
if(mySocket!= null)
{
mySocket.Shutdown(SocketShutdown.Both);
mySocket.Close();
}
http://www.mysjtu.com/page/M0/S898/898440.html
解决Socket关闭报错
549

被折叠的 条评论
为什么被折叠?



