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

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

Begins an asynchronous operation to accept an incoming connection attempt.
BeginAccept method asynchronously 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. ///
public BeginAccept ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback /// The AsyncCallback delegate. ///
state object /// An object containing state information for this request. ///
Результат IAsyncResult
        public IAsyncResult BeginAccept(AsyncCallback callback, object state)
        {
            return (IAsyncResult)BeginTimeoutOp(
                _acceptTimeout, 
                new Accept_Op(_baseSocket), 
                callback, 
                state);
        }