rcx
Class RCXSocketPort

java.lang.Object
  |
  +--rcx.RCXSocketPort
All Implemented Interfaces:
RCXCommPort

public class RCXSocketPort
extends java.lang.Object
implements RCXCommPort

RCXSocketPort - A TCP Socket RCXCommPort


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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCXSocketPort

public RCXSocketPort()
Method Detail

close

public void close()
Closes the socket port

Specified by:
close 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

getOutputStream

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

Specified by:
getOutputStream in interface RCXCommPort
See Also:
RCXCommPort

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


Copyright 1998-2002 dario laverde