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

Variable Index

 o LISTEN_PORT
Port number to listen on for new connections.
 o MAX_HANDLERS
Maximum number of clients/handlers we need.

Constructor Index

 o RoboComm()

Method Index

 o die()
Kill self.
 o main(String[])
Main for RoboComm.
 o register(ConnectionHandler, int)
Register a client/handler.
 o run()
Main control loop.
 o transmit(Message)
Transmit a message.
 o unregister(int)
Unregister the client/handler.

Variables

 o LISTEN_PORT
 public static final int LISTEN_PORT
Port number to listen on for new connections.

 o MAX_HANDLERS
 public static final int MAX_HANDLERS
Maximum number of clients/handlers we need.

Constructors

 o RoboComm
 public RoboComm()

Methods

 o register
 public void register(ConnectionHandler handler,
                      int id)
Register a client/handler.

Parameters:
h - ConnectionHandler, the handler
i - int, the id of the client
 o unregister
 public void unregister(int id)
Unregister the client/handler.

Parameters:
i - int, the id of the client
 o die
 public void die()
Kill self.

 o transmit
 public void transmit(Message m)
Transmit a message.

Parameters:
m - Message, the message to send.
 o run
 public void run()
Main control loop.

 o main
 public static void main(String args[])
Main for RoboComm.


All Packages  Class Hierarchy  This Package  Previous  Next  Index