BytesRoad.Net.Sockets.SocketEx.Accept C# (CSharp) Method

Accept() public method

Creates the new instance of the BytesRoad.Net.Sockets.SocketEx class which represents newly created connection.
Accept method accept incoming connection and create new instance of the SocketEx class for it. The SocketEx should be bound before calling this method thus you need to call BytesRoad.Net.Sockets.SocketEx.Bind and BytesRoad.Net.Sockets.SocketEx.Listen methods first (or their asynchronous versions). Web proxy doesn't able to accept incoming connection. So calling this method on the instance of the SocketEx class which is configured to work with the web proxy server (BytesRoad.Net.Sockets.ProxyType.HttpConnect proxy type) will throw the System.InvalidOperationException exception.
/// The object was disposed. /// /// The operation is unsupported. /// /// An error occurred when attempting to access /// the socket which is used to complete the requested operation. ///
public Accept ( ) : SocketEx
return SocketEx
        public SocketEx Accept()
        {
            return (SocketEx)DoTimeoutOp(_acceptTimeout, new Accept_Op(_baseSocket));
        }