In The Hand - .NET Components for Mobility
Client Property
NamespacesInTheHand.Net.SocketsIrDAClientClient
Gets or sets the underlying Socket.
Declaration Syntax
C#Visual Basic
public Socket Client { get; set; }
Public Property Client As Socket
Remarks
This is particularly useful as it allows setting socket options, for instance IrCOMM Cooked mode, ie NineWireMode.
Examples
Example code to connect to a IrCOMM service would be as follows, note the use of the Client property.
Copy 
Public Shared Sub Main()
   Dim cli As New IrDAClient
   ' Set IrCOMM Cooked/9-wire mode.
   cli.Client.SetSocketOption( _
     IrDASocketOptionLevel.IrLmp, _
     IrDASocketOptionName.NineWireMode, _
     1)  ' representing true
   ' Connect
   cli.Connect("IrDA:IrCOMM")
   ' Connected, now send and receive e.g. by using the 
   ' NetworkStream returned by cli.GetStream
   ...
End Sub

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