IrDAListener.AcceptIrDAClient Method

Creates a client object for a connection when the specified service or endpoint is detected by the listener component.

Namespace: System.Net.Sockets
Assembly: System.Net.IrDA (in system.net.irda.dll)

public IrDAClient AcceptIrDAClient ()
public IrDAClient AcceptIrDAClient ()
public function AcceptIrDAClient () : IrDAClient
Not applicable.

Return Value

An IrDAClient component.

The following code example creates a client connection for the service detected by the listener. This code example is part of a larger example provided for the IrDAClient class.

// Create a client connection for the
// service detected by the listener.
IrDAClient irClient;
try
{
    irClient = irListen.AcceptIrDAClient();
}
catch(SocketException exp)
{
    MessageBox.Show("Couldn't accept socket "
        + exp.ErrorCode);
    return;
}

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show: