public class NetJavaServerSocketImpl extends Object implements ServerSocket
Constructor and Description |
---|
NetJavaServerSocketImpl(Net.Protocol protocol,
int port,
ServerSocketHints hints) |
NetJavaServerSocketImpl(Net.Protocol protocol,
String hostname,
int port,
ServerSocketHints hints) |
Modifier and Type | Method and Description |
---|---|
Socket |
accept(SocketHints hints)
Accepts a new incoming connection from a client
Socket . |
void |
dispose()
Releases all resources of this object.
|
Net.Protocol |
getProtocol() |
public NetJavaServerSocketImpl(Net.Protocol protocol, int port, ServerSocketHints hints)
public NetJavaServerSocketImpl(Net.Protocol protocol, String hostname, int port, ServerSocketHints hints)
public Net.Protocol getProtocol()
getProtocol
in interface ServerSocket
public Socket accept(SocketHints hints)
ServerSocket
Socket
. The given hints will be applied to the accepted socket.
Blocking, call on a separate thread.accept
in interface ServerSocket
hints
- additional SocketHints
applied to the accepted Socket
. Input null to use the default setting
provided by the system.Socket
public void dispose()
Disposable
dispose
in interface Disposable
Copyright © 2017. All rights reserved.