SocketImplNameSocketImplSynopsis
DescriptionThe SocketImpl class is an abstract class that defines the bulk of the methods that make the Socket and ServerSocket classes work. Thus, SocketImpl is used to create both client and server sockets. Non-public subclasses of SocketImpl provide platform-specific implementations of stream-based socket communication. A plain socket implements the methods in SocketImpl as described; other implementations could provide socket communication through a proxy or firewall. Class Summary
public abstract class java.net.SocketImpl extends java.lang.Object { // Variables protected InetAddress address; protected FileDescriptor fd; protected int localport; protected int port; // Instance Methods public String toString(); // Protected Instance Methods protected abstract void accept(SocketImpl s); protected abstract int available(); protected abstract void bind(InetAddress host, int port); protected abstract void close(); protected abstract void connect(String host, int port); protected abstract void connect(InetAddress address, int port); protected abstract void create(boolean stream); protected FileDescriptor getFileDescriptor(); protected InetAddress getInetAddress(); protected abstract InputStream getInputStream(); protected int getLocalPort(); protected abstract OutputStream getOutputStream(); protected int getPort(); protected abstract void listen(int backlog); } Variablesaddressprotected InetAddress address
fdprotected FileDescriptor fd
localPortprotected int localPort
portprotected int port
Instance MethodstoStringpublic String toString()
Protected Instance Methodsacceptprotected abstract void accept(SocketImpl s) throws IOException
availableprotected abstract int available() throws IOException
bind
protected abstract void bind(InetAddress host, int port) throws IOException
closeprotected abstract void close() throws IOException
connect
protected abstract void connect(String host, int port) throws IOException
protected abstract void connect(InetAddress address, int port) throws IOException
createprotected abstract void create(boolean stream) throws IOException
getFileDescriptorprotected final FileDescriptor getFileDescriptor
getInetAddressprotected InetAddress getInetAddress()
getInputStreamprotected abstract InputStream getInputStream() throws IOException
getLocalPortprotected int getLocalPort()
getOutputStream
protected abstract OutputStream getOutputStream() throws IOException
getPortprotected int getPort()
listenprotected abstract void listen(int backlog) throws IOException
Inherited Methods
See AlsoFileDescriptor, InetAddress, InputStream, IOException, OutputStream, ServerSocket, Socket, SocketImplFactory | ||||||||||||||||||||||||
|