Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ProxySocket.BeginListen Method

Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)

BeginListen(ISocket, AsyncCallback, Object)

Starts an asynchronously request to listen for an incoming connection using the specified control socket as a base.

Declaration
public IAsyncResult BeginListen(ISocket controlSocket, AsyncCallback callback, object state)
Parameters
Type Name Description
ISocket controlSocket

The control socket to use as a base.

AsyncCallback callback

The AsyncCallback delegate.

Object state

An object containing state information for this request.

Returns
Type Description
IAsyncResult

An IAsyncResult that references the asynchronous request.

Remarks

This method differs from Listen(Int32):

  • A control connection socket needs to be specified. This might be needed by a proxy server socket.
  • Only a single incoming connection is accepted.
To accept an incoming connection, use the Accept() method.

Note: When connected through a HTTP proxy server, this method will fail.

In This Article
  • BeginListen(ISocket, AsyncCallback, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies