Interface IBluetoothServerSocket
Definition
- Assembly:
- Tizen.Network.Bluetooth.dll
The IBluetoothServerSocket interface handles the server socket operations.
public interface IBluetoothServerSocket
Methods
View SourceSendData(byte[])
Method to send data over bluetooth socket
Declaration
int SendData(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
byte[] | 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.
SendData(string)
Method to send data over bluetooth socket
Declaration
[Obsolete("Deprecated since API level 7. Please use SendData(byte[] data) method.")]
int 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 SourceConnectionStateChanged
Event handler method to receive bluetooth socket connection state changed events. This event occurs when the connection state between two devices is changed.
Declaration
event EventHandler<SocketConnectionStateChangedEventArgs> ConnectionStateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><SocketConnectionStateChangedEventArgs> |
DataReceived
Event handler to receive data over bluetooth socket. This event occurs when the socket server receives data from the client.
Declaration
event EventHandler<SocketDataReceivedEventArgs> DataReceived
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><SocketDataReceivedEventArgs> |