java.net.SocketImpl (JDK 1.0)
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.
public abstract classSocketImplextends Object { //Default Constructor: public SocketImpl()//Protected Instance Variablesprotected InetAddressaddress; protected FileDescriptorfd; protected intlocalport; protected intport; //Public Instance Methodspublic StringtoString(); //Overrides Object//Protected Instance Methodsprotected abstract voidaccept(SocketImpls) throws IOException; protected abstract intavailable() throws IOException; protected abstract voidbind(InetAddresshost, intport) throws IOException; protected abstract voidclose() throws IOException; protected abstract voidconnect(Stringhost, intport) throws IOException; protected abstract voidconnect(InetAddressaddress, intport) throws IOException; protected abstract voidcreate(booleanstream) throws IOException; protected FileDescriptorgetFileDescriptor(); protected InetAddressgetInetAddress(); protected abstract InputStreamgetInputStream() throws IOException; protected intgetLocalPort(); protected abstract OutputStreamgetOutputStream() throws IOException; protected intgetPort(); protected abstract voidlisten(intbacklog) throws IOException; }
Passed To:
Socket(), SocketImpl.accept()
Returned By:
SocketImplFactory.createSocketImpl()