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