Sdílet prostřednictvím


LocalServerSocket.Accept Method

Definition

Accepts a new connection to the socket.

[Android.Runtime.Register("accept", "()Landroid/net/LocalSocket;", "GetAcceptHandler")]
public virtual Android.Net.LocalSocket? Accept ();
[<Android.Runtime.Register("accept", "()Landroid/net/LocalSocket;", "GetAcceptHandler")>]
abstract member Accept : unit -> Android.Net.LocalSocket
override this.Accept : unit -> Android.Net.LocalSocket

Returns

a socket representing the new connection.

Attributes

Exceptions

Remarks

Accepts a new connection to the socket. Blocks until a new connection arrives.

Java documentation for android.net.LocalServerSocket.accept().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to