Java.Net.SocketImpl.Accept Method
Waits for an incoming request and blocks until the connection is opened on the given socket.

Syntax

[Android.Runtime.Register("accept", "(Ljava/net/SocketImpl;)V", "GetAccept_Ljava_net_SocketImpl_Handler")]
protected abstract void Accept (SocketImpl newSocket)

Parameters

newSocket
the socket to accept connections on.

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs while accepting a new connection.

Remarks

Waits for an incoming request and blocks until the connection is opened on the given socket.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1