java.net
Class Socket

java.lang.Object
  extended byjava.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.


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