Esempio n. 1
0
 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);
Esempio n. 2
0
        public AsyncOperationState(AsyncSocket socketExtended, Action <uint, uint> callback)
        {
            m_socketExtended = socketExtended;
            m_callback       = callback;

            m_nativeOverlapped = new Overlapped().UnsafePack(Complete, null);

            WSABuffer = new WSABuffer();
        }
Esempio n. 3
0
    public AsyncOperationState(AsyncSocket socketExtended, Action<uint, uint> callback)
    {
      m_socketExtended = socketExtended;
      m_callback = callback;

      m_nativeOverlapped = new Overlapped().UnsafePack(Complete, null);
            
      WSABuffer = new WSABuffer();
    }