Java in a Nutshell Online Quick Reference for Java 1.1
Availability: JDK 1.0
public class Socket extends Object {
// Public Constructors
public Socket(String host, int port) throws UnknownHostException, IOException;
public Socket(InetAddress address, int port) throws IOException;
1.1 public Socket(String host, int port, InetAddress localAddr, int localPort) throws IOException;
1.1 public Socket(InetAddress address, int port, InetAddress localAddr, int localPort) throws IOException;
# public Socket(String host, int port, boolean stream) throws IOException;
# public Socket(InetAddress host, int port, boolean stream) throws IOException;
// Protected Constructors
protected Socket();
1.1 protected Socket(SocketImpl impl) throws SocketException;
// Class Methods
public static synchronized void setSocketImplFactory(SocketImplFactory fac) throws IOException;
// Public Instance Methods
public synchronized void close() throws IOException;
public InetAddress getInetAddress();
public InputStream getInputStream() throws IOException;
1.1 public InetAddress getLocalAddress();
public int getLocalPort();
public OutputStream getOutputStream() throws IOException;
public int getPort();
1.1 public int getSoLinger() throws SocketException;
1.1 public synchronized int getSoTimeout() throws SocketException;
1.1 public boolean getTcpNoDelay() throws SocketException;
1.1 public void setSoLinger(boolean on, int val) throws SocketException;
1.1 public synchronized void setSoTimeout(int timeout) throws SocketException;
1.1 public void setTcpNoDelay(boolean on) throws SocketException;
public String toString(); // Overrides Object.toString()
}