ProxySocket.BeginConnect Method (EndPoint, AsyncCallback, Object)

Mentalis.org ProxySocket

Begins an asynchronous request for a connection to a network device.

[Visual Basic]Overloads Public Function BeginConnect( _
   ByVal remoteEP As System.Net.EndPoint, _
   ByVal callback As System.AsyncCallback, _
   ByVal state As Object _
) As System.IAsyncResult
[C#]
public IAsyncResult BeginConnect(
   EndPoint remoteEP,
   AsyncCallback callback,
   object state
);

Parameters

remoteEP
An EndPoint that represents the remote device.
callback
The AsyncCallback delegate.
state
An object that contains state information for this request.

Return Value

An IAsyncResult that references the asynchronous connection.

Exceptions

Exception TypeCondition
System.ArgumentNullExceptionThe remoteEP parameter is a null reference (Nothing in Visual Basic).
System.Net.Sockets.SocketExceptionAn operating system error occurs while creating the Socket.
System.ObjectDisposedExceptionThe Socket has been closed.

See Also

ProxySocket Class | ProxySocket Members | Org.Mentalis.Network.ProxySocket Namespace | ProxySocket.BeginConnect Overload List

ProxySocket.BeginConnect Method (EndPoint, AsyncCallback, Object)
Mentalis.org ProxySocket Documentation

ProxySocket.BeginConnect Method (EndPoint, AsyncCallback, Object)

Begins an asynchronous request for a connection to a network device.

[Visual Basic]
Overloads Public Function BeginConnect( _
   ByVal remoteEP As System.Net.EndPoint, _
   ByVal callback As System.AsyncCallback, _
   ByVal state As Object _
) As System.IAsyncResult
[C#]
public IAsyncResult BeginConnect(
   EndPoint remoteEP,
   AsyncCallback callback,
   object state
);

Parameters

remoteEP
An EndPoint that represents the remote device.
callback
The AsyncCallback delegate.
state
An object that contains state information for this request.

Return Value

An IAsyncResult that references the asynchronous connection.

Exceptions

Exception TypeCondition
System.ArgumentNullExceptionThe remoteEP parameter is a null reference (Nothing in Visual Basic).
System.Net.Sockets.SocketExceptionAn operating system error occurs while creating the Socket.
System.ObjectDisposedExceptionThe Socket has been closed.

See Also

ProxySocket Class | ProxySocket Members | Org.Mentalis.Network.ProxySocket Namespace | ProxySocket.BeginConnect Overload List