public static extern SocketError WSARecv( [In] IntPtr socketHandle, [In] ref WSABuffer buffer, [In] int bufferCount, out int bytesTransferred, [In, Out] ref SocketFlags socketFlags, [In] IntPtr overlapped, [In] IntPtr completionRoutine);
public AsyncOperationState(AsyncSocket socketExtended, Action <uint, uint> callback) { m_socketExtended = socketExtended; m_callback = callback; m_nativeOverlapped = new Overlapped().UnsafePack(Complete, null); WSABuffer = new WSABuffer(); }
public AsyncOperationState(AsyncSocket socketExtended, Action<uint, uint> callback) { m_socketExtended = socketExtended; m_callback = callback; m_nativeOverlapped = new Overlapped().UnsafePack(Complete, null); WSABuffer = new WSABuffer(); }