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.IOException
public static java.net.Socket connect(java.lang.String hostname, int port, int connectionTimeout) throws java.io.IOException
java.io.IOException
Copyright © 2003-present Jodd Team