IrDAListenerBeginAcceptSocket Method

Begins an asynchronous operation to accept an incoming connection attempt.

Definition

Namespace: InTheHand.Net.Sockets
Assembly: InTheHand.Net.IrDA (in InTheHand.Net.IrDA.dll) Version: 4.0.2+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public IAsyncResult BeginAcceptSocket(
	AsyncCallback callback,
	Object state
)

Parameters

callback  AsyncCallback
An AsyncCallback delegate that references the method to invoke when the operation is complete.
state  Object
A user-defined object containing information about the accept operation. This object is passed to the callback delegate when the operation is complete.

Return Value

IAsyncResult
An IAsyncResult that references the asynchronous creation of the Socket.

Exceptions

ObjectDisposedExceptionThe Socket has been closed.

See Also