IrDASocketOptionName Class

Socket option constants to set IrDA specific connection modes, and get/set IrDA specific features.

Definition

Namespace: InTheHand.Net.Sockets
Assembly: InTheHand.Net.IrDA (in InTheHand.Net.IrDA.dll) Version: 4.0.2+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public static class IrDASocketOptionName
Inheritance
Object    IrDASocketOptionName

Remarks

Socket option constants to set IrDA specific connection modes, and get/set IrDA specific features: for instance to set IrLMP mode, or get the maximum send size. Pass to GetSocketOption(SocketOptionLevel, SocketOptionName, Byte)/etc and SetSocketOption(SocketOptionLevel, SocketOptionName, Byte)/etc, along with optionLevel IrDASocketOptionLevel.IrLmp; see the examples below.

Example

For instance, where cli is an instance of IrDAClient.

In VB.NET, to set IrLMP mode (IrLptMode).
VB
cli.Client.SetSocketOption(IrDASocketOptionLevel.Irlmp,  _
   IrDASocketOptionName.IrLptMode, _
   1) 'representing true; can use True itself in FXv2.
In C#, to retrieve the maximum send size.
C#
int maxSendSize = (int)cli.Client.GetSocketOption(
   IrDASocketOptionLevel.Irlmp,
   IrDASocketOptionName.SendPduLength);

Fields

EnumDevice Gets the list of discovered devices. Is used internally by IrDAClient.DiscoverDevices.
ExclusiveMode Restricts the link to one application-level (IrLMP) connection; for use when low latency is required. Returns an error on all tested platforms.
IasQuery Queries an entry in the peer's IAS (Information Access Service) database.
IasSet Sets an entry in the local IAS (Information Access Service) database.
IrLptMode Sets IrLMP mode, disabling TinyTP. Used for instance when printing with IrLPT.
NineWireMode Sets IrCOMM 9-Wire/Cooked mode. Used for instance when connecting to the modem in a mobile phone (service name IrDA:IrCOMM).
SendPduLength Retrieve the maximum send size when using IrLMP directly (IrLptMode). IrLMP requires sent data to fit in one frame.
SharpMode Reportedly sets non-IrDA Sharp ASK mode on the Windows CE platform. Presence unverified.

See Also