Compartilhar via


SocketImpl.Listen(Int32) Method

Definition

Sets the maximum queue length for incoming connection indications (a request to connect) to the count argument.

[Android.Runtime.Register("listen", "(I)V", "GetListen_IHandler")]
protected abstract void Listen (int backlog);
[<Android.Runtime.Register("listen", "(I)V", "GetListen_IHandler")>]
abstract member Listen : int -> unit

Parameters

backlog
Int32

the maximum length of the queue.

Attributes

Exceptions

if an error occurs while listening.

Remarks

Sets the maximum queue length for incoming connection indications (a request to connect) to the count argument. If a connection indication arrives when the queue is full, the connection is refused.

Java documentation for java.net.SocketImpl.listen(int).

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