March 2005
Beginner to intermediate
1254 pages
104h 21m
English
SocketImpl
This abstract class defines the methods
necessary to implement communication through sockets. Different
subclasses of this class may provide different implementations
suitable in different environments (such as behind firewalls). These
socket implementations are used by the Socket and
ServerSocket classes. Normal applications never
need to use or subclass this class.
Figure 12-20. java.net.SocketImpl
public abstract class SocketImpl implements SocketOptions { // Public Constructors public SocketImpl( ); // Public Methods Overriding Object public String toString( ); // Protected Instance Methods protected abstract void accept(SocketImpl s) throws java.io.IOException; protected abstract int available( ) throws java.io.IOException; protected abstract void bind(InetAddress host, int port) throws java.io.IOException; protected abstract void close( ) throws java.io.IOException; protected abstract void connect(String host, int port) throws java.io.IOException; protected abstract void connect(InetAddress address, int port) throws java.io.IOException; 1.4 protected abstract void connect(SocketAddress address, int timeout) throws java.io.IOException; protected abstract void create(boolean stream) throws java.io.IOException; protected java.io.FileDescriptor getFileDescriptor( ); protected InetAddress getInetAddress( ); protected abstract java.io.InputStream getInputStream ...
Read now
Unlock full access