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.
C#Copypublic class BluetoothServerSocket : IDisposable
- Inheritance
-
System.ObjectBluetoothServerSocket
- Implements
-
System.IDisposable
Methods
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic void Listen()
Remarks
The socket must be created with CreateServerSocket(). This API invokes the ConnectionStateChanged event.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the Bluetooth is not enabled or when the listen on socket procedure fails. |
API Level: 3
Events
View Source
AcceptStateChanged
The AcceptStateChanged event is raised when the socket connection state is changed.
Declaration
C#Copypublic event EventHandler<AcceptStateChangedEventArgs> AcceptStateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<AcceptStateChangedEventArgs> |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the Bluetooth is not enabled or when the register accpet state changed callback fails. |
API Level: 3
Implements
System.IDisposable