Methods Summary |
---|
public java.net.ServerSocket | createServerSocket(int port)Creates a ServerSocket bound to a specified port. A port
of 0 will create the ServerSocket on a system-determined free port.
return new ServerSocket(port);
|
public java.net.ServerSocket | createServerSocket(int port, int backlog)Creates a ServerSocket bound to a specified port with a given
maximum queue length for incoming connections. A port of 0 will
create the ServerSocket on a system-determined free port.
return new ServerSocket(port, backlog);
|
public java.net.ServerSocket | createServerSocket(int port, int backlog, java.net.InetAddress bindAddr)Creates a ServerSocket bound to a specified port on a given local
address with a given maximum queue length for incoming connections.
A port of 0 will
create the ServerSocket on a system-determined free port.
return new ServerSocket(port, backlog, bindAddr);
|
public java.net.Socket | createSocket(java.lang.String host, int port)Creates a Socket connected to the given host and port.
return new Socket(host, port);
|
public java.net.Socket | createSocket(java.net.InetAddress address, int port)Creates a Socket connected to the given host and port.
return new Socket(address, port);
|
public java.net.Socket | createSocket(java.lang.String host, int port, java.net.InetAddress localAddr, int localPort)Creates a Socket connected to the given host and port and
originating from the specified local address and port.
return new Socket(host, port, localAddr, localPort);
|
public java.net.Socket | createSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddr, int localPort)Creates a Socket connected to the given host and port and
originating from the specified local address and port.
return new Socket(address, port, localAddr, localPort);
|