BytesRoad.Net.Sockets.SocketEx.Listen C# (CSharp) Метод

Listen() публичный Метод

Places a BytesRoad.Net.Sockets.SocketEx in a listening state.
Listen causes BytesRoad.Net.Sockets.SocketEx to listen for incoming connection attempts. The backlog parameter specifies the number of incoming connections that can be queued for acceptance.

Listen function is meaningful only when called on instance of the BytesRoad.Net.Sockets.SocketEx class which configured not to use any type of proxy servers. That is BytesRoad.Net.Sockets.SocketEx.ProxyType property equals to BytesRoad.Net.Sockets.ProxyType.None.

/// The object was disposed. /// /// An error occurred when attempting to access /// the socket which is used to complete the requested operation. ///
public Listen ( int backlog ) : void
backlog int Lenght of the buffer where incoming connections are queued.
Результат void
        public void Listen(int backlog)
        {
            DoTimeoutOp(_connectTimeout, new Listen_Op(_baseSocket, backlog));
        }
        #endregion