AddSocket() static private method

static private AddSocket ( MicroSocket s ) : void
s MicroSocket
return void
示例#1
0
 public MicroSocket(Socket socket)
 {
     m_socket          = socket;
     m_socket.Blocking = false;
     MicroSocketManager.AddSocket(this);
 }
示例#2
0
 public MicroSocket()
 {
     m_socket          = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
     m_socket.Blocking = false;
     MicroSocketManager.AddSocket(this);
 }