Packages This Package Prev Next Index
public abstract class java.net.SocketImpl extends java.lang.Object (I-§1.12) { // Fields protected InetAddress address; §4.7.1 protected FileDescriptor fd; §4.7.2 protected int localport; §4.7.3 protected int port; §4.7.4 // Constructors public SocketImpl(); §4.7.5 // Methods protected abstract void accept(SocketImpl s); §4.7.6 protected abstract int available(); §4.7.7 protected abstract void bind(InetAddress host, int port); §4.7.8 protected abstract void close(); §4.7.9 protected abstract void §4.7.10 connect(InetAddress address, int port); protected abstract void connect(String host, int port); §4.7.11 protected abstract void create(boolean stream); §4.7.12 protected FileDescriptor getFileDescriptor(); §4.7.13 protected InetAddress getInetAddress(); §4.7.14 protected abstract InputStream getInputStream(); §4.7.15 protected int getLocalPort(); §4.7.16 protected abstract OutputStream getOutputStream(); §4.7.17 protected int getPort(); §4.7.18 protected abstract void listen(int count); §4.7.19 public String toString(); §4.7.20 }The abstract class SocketImpl is a common superclass of all classes that actually implement sockets. It is used to create both client and server sockets.
protected InetAddress address
protected FileDescriptor fd
protected int localport
protected int port
public SocketImpl()
protected abstract void accept(SocketImpl s)
throws IOException
s
-
the accepted connection
protected abstract int available()
throws IOException
protected abstract void bind(InetAddress host, int port)
throws IOException
host
-
the IP address of the remote hsot
port
-
the port number
protected abstract void close()
throws IOException
protected abstract void
connect(InetAddress address, int port)
throws IOException
address
-
the IP address of the remote host
port
-
the port number
protected abstract void connect(String host, int port)
throws IOException
host
-
the name of the remote host
port
-
the port number
protected abstract void create(boolean stream)
throws IOException
stream
-
if true, create a stream socket; otherwise, create a datagram
socket
protected FileDescriptor getFileDescriptor()
protected InetAddress getInetAddress()
protected abstract InputStream getInputStream()
throws IOException
protected int getLocalPort()
protected abstract OutputStream getOutputStream()
throws IOException
protected int getPort()
protected abstract void listen(int count)
throws IOException
count
-
the maximum length of the queue
public String toString()
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)