Android.Bluetooth.BluetoothServerSocket.Accept Method
Block until a connection is established, with timeout.

Syntax

[Android.Runtime.Register("accept", "(I)Landroid/bluetooth/BluetoothSocket;", "")]
public BluetoothSocket Accept (int timeout)

Parameters

timeout
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionon error, for example this call was aborted, or timeout

Remarks

Block until a connection is established, with timeout.

Returns a connected Android.Bluetooth.BluetoothSocket on successful connection.

Once this call returns, it can be called again to accept subsequent incoming connections.

BluetoothServerSocket.Close can be used to abort this call from another thread.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5