| Package | Description |
|---|---|
| com.badlogic.gdx | |
| com.badlogic.gdx.net |
| Modifier and Type | Method and Description |
|---|---|
static Net.Protocol |
Net.Protocol.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Net.Protocol[] |
Net.Protocol.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
Net.newClientSocket(Net.Protocol protocol,
java.lang.String host,
int port,
SocketHints hints)
Creates a new TCP client socket that connects to the given host and port.
|
ServerSocket |
Net.newServerSocket(Net.Protocol protocol,
int port,
ServerSocketHints hints)
Creates a new server socket on the given port, using the given
Net.Protocol, waiting for incoming connections. |
ServerSocket |
Net.newServerSocket(Net.Protocol protocol,
java.lang.String hostname,
int port,
ServerSocketHints hints)
Creates a new server socket on the given address and port, using the given
Net.Protocol, waiting for incoming connections. |
| Modifier and Type | Method and Description |
|---|---|
Net.Protocol |
NetJavaServerSocketImpl.getProtocol() |
Net.Protocol |
ServerSocket.getProtocol() |
| Constructor and Description |
|---|
NetJavaServerSocketImpl(Net.Protocol protocol,
int port,
ServerSocketHints hints) |
NetJavaServerSocketImpl(Net.Protocol protocol,
java.lang.String hostname,
int port,
ServerSocketHints hints) |
NetJavaSocketImpl(Net.Protocol protocol,
java.lang.String host,
int port,
SocketHints hints) |