public interface ServerSocket extends Disposable
Socket
instances. The accept(SocketHints)
method should preferably be called in a separate thread as it is blocking.Modifier and Type | Method and Description |
---|---|
Socket |
accept(SocketHints hints)
Accepts a new incoming connection from a client
Socket . |
Net.Protocol |
getProtocol() |
dispose
Net.Protocol getProtocol()
Socket accept(SocketHints hints)
Socket
. The given hints will be applied to the accepted socket.
Blocking, call on a separate thread.hints
- additional SocketHints
applied to the accepted Socket
. Input null to use the default setting
provided by the system.Socket
GdxRuntimeException
- in case an error occurredCopyright © 2016. All rights reserved.