rcx
Class RCXSocketPort

java.lang.Object
  extended by rcx.RCXSocketPort
All Implemented Interfaces:
RCXCommPort

public class RCXSocketPort
extends java.lang.Object
implements RCXCommPort

RCXSocketPort - A TCP Socket RCXCommPort

Version:
2.1 Copyright 2002 Dario Laverde, under terms of GNU LGPL
Author:
Dario Laverde

Constructor Summary
RCXSocketPort()
           
 
Method Summary
 void close()
          Closes the socket port
 java.io.InputStream getInputStream()
          Obtains the InputStream from the socket.
 java.io.OutputStream getOutputStream()
          Obtains the OutputStream from the socket.
 boolean open(java.lang.String portName)
          Opens and setups a socket port as a RCXCommPort.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCXSocketPort

public RCXSocketPort()
Method Detail

open

public boolean open(java.lang.String portName)
Opens and setups a socket port as a RCXCommPort. Returns true if successful false otherwise.

Specified by:
open in interface RCXCommPort
See Also:
RCXCommPort

close

public void close()
Closes the socket port

Specified by:
close in interface RCXCommPort
See Also:
RCXCommPort

getOutputStream

public java.io.OutputStream getOutputStream()
Obtains the OutputStream from the socket.

Specified by:
getOutputStream in interface RCXCommPort
See Also:
RCXCommPort

getInputStream

public java.io.InputStream getInputStream()
Obtains the InputStream from the socket.

Specified by:
getInputStream in interface RCXCommPort
See Also:
RCXCommPort