Name

SocketImpl

Synopsis

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.

java.net.SocketImpl

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 ...

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.