Home > Language Reference > Classes > StreamBluetooth

Close Method

Closes an open socket.

Syntax

Public Sub Close()

Remarks

The Close method closes an open Bluetooth socket and frees the associated resources. If the object was not previously initialized, calling this method has no effect, and notably does not raise any runtime error.

If the object was set up as a server (ie the L2CapListen or RfCommListen method was called), this method also closes all the inbound connections this server might have accepted, and stops advertising the service.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 5.0Requires a Bluetooth enabled device.