This documentation is archived and is not being maintained.

IrDAClient Class

Provides connection services for an infrared connection.

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

public ref class IrDAClient
public class IrDAClient
public class IrDAClient
Not applicable.

Provides services for an infrared end point that includes making connections, obtaining data streams and discovering devices.

Because of protocol differences, you cannot interactively use the infrared Beam features on a Pocket PC with a .NET Compact Framework infrared application. Protocol differences also exist with the built-in infrared features on a laptop or desktop computer.

Infrared connections are made by specifying a service name, which can be any value provided the participating devices refer the same 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

This code example demonstrates how to send and receive files between devices using infrared communications. You need two Pocket PCs, one as the device to send the file and the other to receive it. To run this sample, do the following:

  1. Build this example.

  2. Create a text file named send.txt in the My Documents folder of the device that will send the file.

  3. Align the infrared ports of the devices.

  4. Start the application, IrDADemo.exe, on both devices.

  5. On both devices, click the Discover button for a list of infrared devices within range.

  6. On the device that will receive the file, select the device that will send the file, and then click the Receive button. This button must be clicked before clicking Send on the sending device.

  7. On the device that will send the file, click the Send button.

  8. The receiving device will receive the file, which will be saved to a file named receive.txt in the My Documents folder.

No code example is currently available or this language may not be supported.

System.Object
   System.Net.EndPoint
    System.Net.Sockets.IrDAClient

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
Show: