Export (0) Print
Expand All

IrDAEndPoint Class

Represents an end point for an infrared connection.

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

public class IrDAEndPoint : EndPoint
public class IrDAEndPoint extends EndPoint
public class IrDAEndPoint extends EndPoint
Not applicable.

You can create an IrDAListener from an IrDAEndPoint, which is established with the device ID and service name.

TopicLocation
How to: Make an Infrared File Transfer.NET Compact Framework
How to: Make an Infrared File Transfer.NET Compact Framework
How to: Make an Infrared File Transfer.NET Compact Framework

The following code example creates a connection, with the IrDAEndPoint class, to a device and starts listening for infrared communication from that device with the IrDAListener class. This code example is part of a larger example provided for the IrDAClient class.

// Create a connection, with the IrDAEndPoint class,
// for the selected device in the list box.
// Start listening for incoming requests from
// that device with an IrDAListener object.
try
{
    int i = listBox1.SelectedIndex;
    irEndP = new IrDAEndPoint(irDevices[i].DeviceID,
        irServiceName);
    irListen = new IrDAListener(irEndP);
    irListen.Start();
}
catch(SocketException exSoc)
{
    MessageBox.Show("Couldn't listen on service "
        + irServiceName + ": "
        + exSoc.ErrorCode);
}

System.Object
   System.Net.EndPoint
    System.Net.IrDAEndPoint

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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:
© 2014 Microsoft