Export (0) Print
Expand All

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()

Return Value

Type: System.Net.Sockets.IrDAClient
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 Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft