Class BluetoothServerSocket
Definition
- Namespace:
- Tizen.Network.Bluetooth
- Assembly:
- Tizen.Network.Bluetooth.dll
- API Level:
- 3
The BluetoothSocket provides functions for managing connections to other devices and exchanging data.
public class BluetoothServerSocket : IDisposable
- Inheritance
-
BluetoothServerSocket
- Implements
Methods
View SourceDispose()
Dispose
Declaration
public void Dispose()
API Level: 3
View SourceFinalize()
BluetoothServerSocket destructor.
Declaration
protected void Finalize()
Listen()
Starts listening on the passed RFCOMM socket and accepts connection requests.
Declaration
public void Listen()
Remarks
The socket must be created with CreateServerSocket(). This API invokes the ConnectionStateChanged event.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when the Bluetooth is not enabled or when the listen on socket procedure fails. |
API Level: 3
Events
View SourceAcceptStateChanged
The AcceptStateChanged event is raised when the socket connection state is changed.
Declaration
public event EventHandler<AcceptStateChangedEventArgs> AcceptStateChanged
Event Type
Type | Description |
---|---|
EventHandler<AcceptStateChangedEventArgs> |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when the Bluetooth is not enabled or when the register accpet state changed callback fails. |