Interface IBluetoothServerSocket
Definition
- Assembly:
- Tizen.Network.Bluetooth.dll
The IBluetoothServerSocket interface handles the server socket operations.
C#Copypublic interface IBluetoothServerSocket
Methods
Declaration
C#Copyint SendData(string data)
Parameters
| Type | Name | Description |
|---|---|---|
| string | data | The data to be sent. |
Returns
| Type | Description |
|---|---|
| int | The number of bytes written (zero indicates nothing was written). |
Remarks
The connection must be established.
Events
View Source
ConnectionStateChanged
Event handler method to receive bluetooth socket connection state changed events. This event occurs when the connection state between two devices is changed.
Declaration
C#Copyevent EventHandler<SocketConnectionStateChangedEventArgs> ConnectionStateChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><SocketConnectionStateChangedEventArgs> |
View Source
DataReceived
Event handler to receive data over bluetooth socket. This event occurs when the socket server receives data from the client.
Declaration
C#Copyevent EventHandler<SocketDataReceivedEventArgs> DataReceived
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><SocketDataReceivedEventArgs> |