看你调用哪个函数了。 像Send.会抛出下面的异常 ArgumentNullException: buffer is null.SocketException:An error occurred when attempting to access the socket. See the Res section for more information.ObjectDisposedException: The Socket has been closed.具体你可以参考msdn. 例如 http://msdn.microsoft.com/en-us/library/ms145160.aspx
像Send.会抛出下面的异常
ArgumentNullException: buffer is null.SocketException:An error occurred when attempting to access the socket. See the Res section for more information.ObjectDisposedException: The Socket has been closed.具体你可以参考msdn.
例如
http://msdn.microsoft.com/en-us/library/ms145160.aspx
http://msdn.microsoft.com/zh-cn/library/sb27wehh(v=VS.80).aspx