Interface IBluetoothServerSocket

    Definition

    Namespace:
    Tizen.Network.Bluetooth
    Assembly:
    Tizen.Network.Bluetooth.dll

    The IBluetoothServerSocket interface handles the server socket operations.

    public interface IBluetoothServerSocket

    Methods

    View Source

    SendData(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.

    View Source

    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 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
    event 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
    event EventHandler<SocketDataReceivedEventArgs> DataReceived
    Event Type
    Type Description
    System.EventHandler<TEventArgs><SocketDataReceivedEventArgs>
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX