home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / rt.jar / java / net / SocketImpl.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-23  |  1.7 KB  |  59 lines

  1. package java.net;
  2.  
  3. import java.io.FileDescriptor;
  4. import java.io.IOException;
  5. import java.io.InputStream;
  6. import java.io.OutputStream;
  7.  
  8. public abstract class SocketImpl implements SocketOptions {
  9.    // $FF: renamed from: fd java.io.FileDescriptor
  10.    protected FileDescriptor field_0;
  11.    protected InetAddress address;
  12.    protected int port;
  13.    protected int localport;
  14.  
  15.    protected abstract void create(boolean var1) throws IOException;
  16.  
  17.    protected abstract void connect(String var1, int var2) throws IOException;
  18.  
  19.    protected abstract void connect(InetAddress var1, int var2) throws IOException;
  20.  
  21.    protected abstract void bind(InetAddress var1, int var2) throws IOException;
  22.  
  23.    protected abstract void listen(int var1) throws IOException;
  24.  
  25.    protected abstract void accept(SocketImpl var1) throws IOException;
  26.  
  27.    protected abstract InputStream getInputStream() throws IOException;
  28.  
  29.    protected abstract OutputStream getOutputStream() throws IOException;
  30.  
  31.    protected abstract int available() throws IOException;
  32.  
  33.    protected abstract void close() throws IOException;
  34.  
  35.    protected FileDescriptor getFileDescriptor() {
  36.       return this.field_0;
  37.    }
  38.  
  39.    protected InetAddress getInetAddress() {
  40.       return this.address;
  41.    }
  42.  
  43.    protected int getPort() {
  44.       return this.port;
  45.    }
  46.  
  47.    protected int getLocalPort() {
  48.       return this.localport;
  49.    }
  50.  
  51.    public String toString() {
  52.       return "Socket[addr=" + this.getInetAddress() + ",port=" + this.getPort() + ",localport=" + this.getLocalPort() + "]";
  53.    }
  54.  
  55.    public abstract void setOption(int var1, Object var2) throws SocketException;
  56.  
  57.    public abstract Object getOption(int var1) throws SocketException;
  58. }
  59.