private void InitSocket() { Handle = UnsafeMethods.WSASocket(AddressFamily, SocketType, ProtocolType, IntPtr.Zero, 0, SocketConstructorFlags.WSA_FLAG_OVERLAPPED); if (Handle == UnsafeMethods.INVALID_HANDLE_VALUE) { throw new SocketException(); } }
private void InitSocket() { Handle = UnsafeMethods.WSASocket(AddressFamily, SocketType, ProtocolType, IntPtr.Zero, 0, SocketConstructorFlags.WSA_FLAG_OVERLAPPED); if (Handle == UnsafeMethods.INVALID_HANDLE_VALUE) { throw new SocketException(); } }