Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## java.net
Class Socket

    java.lang.Object
      java.net.Socket

    public class Socket

extends Object

An RCX version of Socket that connects to TCP/IP ports via a proxy called SocketProxy running on the PC. It uses the josx.rcxcomm package.

Author:
  Lawrie Griffiths

Constructor Summary
`Socket(String host, int port)` Connects to a Socket via the proxy on the PC.

Method Summary
`InputStream` | `getInputStream()` Returns an input stream for this Socket.
`OutputStream` | `getOutputStream()` Returns an output stream for this Socket.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait`

Constructor Detail

### Socket

    public Socket(String host,
                  int port)
           throws IOException

  Connects to a Socket via the proxy on the PC.

  Parameters:
    `host` - the host to connect to
    `port` - the port to connect to
  Throws:
    `IOException`

Method Detail

### getInputStream

    public InputStream getInputStream()

  Returns an input stream for this Socket.

  Returns:
    an input stream for reading bytes from this Socket.

### getOutputStream

    public OutputStream getOutputStream()

  Returns an output stream for this Socket.

  Returns:
    an output stream for writing bytes to this Socket.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD