public class NetJavaServerSocketImpl extends java.lang.Object implements ServerSocket
| Constructor and Description |
|---|
NetJavaServerSocketImpl(Net.Protocol protocol,
int port,
ServerSocketHints hints) |
NetJavaServerSocketImpl(Net.Protocol protocol,
java.lang.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, java.lang.String hostname, int port, ServerSocketHints hints)
public Net.Protocol getProtocol()
getProtocol in interface ServerSocketpublic Socket accept(SocketHints hints)
ServerSocketSocket. The given hints will be applied to the accepted socket.
Blocking, call on a separate thread.accept in interface ServerSockethints - additional SocketHints applied to the accepted Socket. Input null to use the default setting
provided by the system.Socketpublic void dispose()
Disposabledispose in interface Disposable