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. |
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 toport
- the port to connect to
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.