110,533
社区成员
发帖
与我相关
我的任务
分享
public void Stop()
{
if (Logging.On)
{
Logging.Enter(Logging.Sockets, this, "Stop", null);
}
if (this.m_ServerSocket != null)
{
this.m_ServerSocket.Close();
this.m_ServerSocket = null;
}
this.m_Active = false;
this.m_ServerSocket = new Socket(this.m_ServerSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
if (this.m_ExclusiveAddressUse)
{
this.m_ServerSocket.ExclusiveAddressUse = true;
}
if (Logging.On)
{
Logging.Exit(Logging.Sockets, this, "Stop", null);
}
}