Class BluetoothServerSocket

    Definition

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

    The BluetoothSocket provides functions for managing connections to other devices and exchanging data.

    public class BluetoothServerSocket : IDisposable
    Inheritance
    object
    BluetoothServerSocket

    Methods

    View Source

    AcceptAsync()

    Accepts a connection request asynchronously.

    Declaration
    public Task<SocketConnection> AcceptAsync()
    Returns
    Type Description
    Task<><SocketConnection>

    A task indicating whether the method is done or not.

    View Source

    Dispose()

    Dispose

    Declaration
    public void Dispose()
    View Source

    ~BluetoothServerSocket()

    BluetoothServerSocket destructor.

    Declaration
    protected ~BluetoothServerSocket()
    View Source

    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.

    View Source

    ListenWithoutAccept()

    Starts listening on the passed RFCOMM socket without accepting connection requests.

    Declaration
    public void ListenWithoutAccept()
    View Source

    Reject()

    Rejects a connection request.

    Declaration
    public void Reject()

    Events

    View Source

    AcceptStateChanged

    The AcceptStateChanged event is raised when the socket connection state is changed.

    Declaration
    public event EventHandler<AcceptStateChangedEventArgs> AcceptStateChanged
    Event Type
    Type Description
    EventHandler<><AcceptStateChangedEventArgs>
    View Source

    ConnectionRequested

    Registers a callback function that will be invoked when a RFCOMM connection is requested.

    Declaration
    public event EventHandler<SocketConnectionRequestedEventArgs> ConnectionRequested
    Event Type
    Type Description
    EventHandler<><SocketConnectionRequestedEventArgs>

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX