In The Hand - .NET Components for Mobility
IrDASocketOptionName Class
NamespacesInTheHand.Net.SocketsIrDASocketOptionName
Socket option constants to set IrDA specific connection modes, and get/set IrDA specific features.
Declaration Syntax
C#Visual Basic
public static class IrDASocketOptionName
Public NotInheritable Class IrDASocketOptionName
Members
All MembersFields



IconMemberDescription
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.

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()()() and SetSocketOption()()(), along with optionLevel IrDASocketOptionLevel.IrLmp; see the examples below.

New in v1.5.51015

Examples

For instance, where cli is an instance of IrDAClient.

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

Assembly: InTheHand.Net.Personal (Module: InTheHand.Net.Personal) Version: 2.2.0.0