IrDAClientClose Method

Closes the IrDAClient and the underlying connection.

Definition

Namespace: InTheHand.Net.Sockets
Assembly: InTheHand.Net.IrDA (in InTheHand.Net.IrDA.dll) Version: 4.0.2+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public void Close()

Remarks

The two XxxxxClient classes produced by Microsoft (TcpClient, and IrDAClient in the NETCF) have various documented behaviours and various actual behaviours for close/dispose/finalize on the various platforms. :-( The current TcpClient implementation is that Close/Dispose closes the connection by closing the underlying socket and/or NetworkStream, and finalization doesn't close either. This is the behaviour we use for the here (for BluetoothClient, IrDAClient). (The documentation in MSDN for TcpClient is still wrong by-the-way, see Microsoft feedback #158480).

See Also