|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrcx.RCXServer
public class RCXServer
RCXServer - used to receive remote tcp connections to control a local RCX
Usage: RCXServer rcxportname [port number]
| Constructor Summary | |
|---|---|
RCXServer(java.lang.String rcxport,
int portnum)
RCXServer is a proxy server for handling remote TCP socket clients to control a local RCX. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
The command line driven main for RCXServer. |
void |
receivedError(java.lang.String error)
This implements the RCXErrorListener interface to listen and handle errors. |
void |
run()
RCXServer runs as a thread looping around a server socket's accept() and handling one client at a time until it disconnects. |
void |
stop()
This is called to stop the server's thread and gracefully close the sockets. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RCXServer(java.lang.String rcxport,
int portnum)
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void run()
run in interface java.lang.RunnableRCXPortpublic void stop()
public void receivedError(java.lang.String error)
receivedError in interface RCXErrorListenerRCXErrorListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||