示例#1
0
 internal Socket(System.Net.Sockets.Socket innerSocket)
 {
     _innerSocket = innerSocket;
     AsyncContext = AsyncEngine.SocketEngine.CreateContext(_innerSocket.SafeHandle);
 }
示例#2
0
 public Socket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
 {
     _innerSocket = new System.Net.Sockets.Socket(addressFamily, socketType, protocolType);
     AsyncContext = AsyncEngine.SocketEngine.CreateContext(_innerSocket.SafeHandle);
 }