public class Sockets
extends java.lang.Object
| Constructor and Description |
|---|
Sockets() |
| Modifier and Type | Method and Description |
|---|---|
static java.net.Socket |
connect(java.lang.String hostname,
int port)
Creates a socket.
|
static java.net.Socket |
connect(java.lang.String hostname,
int port,
int connectionTimeout)
Creates a socket with a timeout.
|
public static java.net.Socket connect(java.lang.String hostname,
int port)
throws java.io.IOException
java.io.IOExceptionpublic static java.net.Socket connect(java.lang.String hostname,
int port,
int connectionTimeout)
throws java.io.IOException
java.io.IOExceptionCopyright © 2003-present Jodd Team