The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
IrDAEndPoint Class
.NET Framework 3.0
Represents an end point for an infrared connection.
Namespace: System.Net
Assembly: System.Net.IrDA (in system.net.irda.dll)
System.Net Namespace
Assembly: System.Net.IrDA (in system.net.irda.dll)
You can create an IrDAListener from an IrDAEndPoint, which is established with the device ID and service name.
| Topic | Location |
|---|---|
| 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); }
Reference
IrDAEndPoint MembersSystem.Net Namespace
Other Resources
How to: Make an Infrared File TransferCommunity Additions
Show: