All Packages Class Hierarchy This Package Previous Next Index
Class RoboComm.RoboComm
java.lang.Object
|
+----RoboComm.RoboComm
- public class RoboComm
- extends Object
Robot Communication Server. Provides an easy-to-use robot to robot
communication protocol.
To run this program type "java RoboComm.RoboComm".
For more detailed information, see the
RoboComm page.
Copyright (c)1998 Tucker Balch, all rights reserved.
- Version:
- $Revision: 1.2 $
- Author:
- Tucker Balch
-
LISTEN_PORT
- Port number to listen on for new connections.
-
MAX_HANDLERS
- Maximum number of clients/handlers we need.
-
RoboComm()
-
-
die()
- Kill self.
-
main(String[])
- Main for RoboComm.
-
register(ConnectionHandler, int)
- Register a client/handler.
-
run()
- Main control loop.
-
transmit(Message)
- Transmit a message.
-
unregister(int)
- Unregister the client/handler.
LISTEN_PORT
public static final int LISTEN_PORT
- Port number to listen on for new connections.
MAX_HANDLERS
public static final int MAX_HANDLERS
- Maximum number of clients/handlers we need.
RoboComm
public RoboComm()
register
public void register(ConnectionHandler handler,
int id)
- Register a client/handler.
- Parameters:
- h - ConnectionHandler, the handler
- i - int, the id of the client
unregister
public void unregister(int id)
- Unregister the client/handler.
- Parameters:
- i - int, the id of the client
die
public void die()
- Kill self.
transmit
public void transmit(Message m)
- Transmit a message.
- Parameters:
- m - Message, the message to send.
run
public void run()
- Main control loop.
main
public static void main(String args[])
- Main for RoboComm.
All Packages Class Hierarchy This Package Previous Next Index