Condividi tramite


ServerSocket.ImplAccept(Socket) Method

Definition

Subclasses of ServerSocket use this method to override accept() to return their own subclass of socket.

[Android.Runtime.Register("implAccept", "(Ljava/net/Socket;)V", "")]
protected void ImplAccept (Java.Net.Socket? s);
[<Android.Runtime.Register("implAccept", "(Ljava/net/Socket;)V", "")>]
member this.ImplAccept : Java.Net.Socket -> unit

Parameters

s
Socket

the Socket

Attributes

Exceptions

if the connection cannot be accepted.

Remarks

Subclasses of ServerSocket use this method to override accept() to return their own subclass of socket. So a FooServerSocket will typically hand this method an empty FooSocket. On return from implAccept the FooSocket will be connected to a client.

Added in 1.1.

Java documentation for java.net.ServerSocket.implAccept(java.net.Socket).

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