Gets or sets the underlying Socket.
This is particularly useful as it allows setting socket
options, for instance IrCOMM Cooked mode, ie
NineWireMode.
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