All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class RoboComm.ConnectionHandler

java.lang.Object
   |
   +----RoboComm.ConnectionHandler

public class ConnectionHandler
extends Object
implements Runnable
Manages the connection to a robot.

For more detailed information, see the RoboComm page.

Copyright (c) 1998 Tucker Balch, all rights reserved.

Version:
$Revision: 1.2 $
Author:
Tucker Balch

Constructor Index

 o ConnectionHandler(Socket, RoboComm)
Set up to manage a socket.

Method Index

 o die()
Quit handling the client.
 o run()
Thread to manage the socket.
 o send(Message)
Send a message to the client.

Constructors

 o ConnectionHandler
 public ConnectionHandler(Socket s,
                          RoboComm ser)
Set up to manage a socket.

Parameters:
s - Socket, the socket to listen to.

Methods

 o run
 public void run()
Thread to manage the socket.

 o die
 public void die()
Quit handling the client. Assume that we have been unregistered.

 o send
 public void send(Message m)
Send a message to the client.

Parameters:
m - Message, the message to send.

All Packages  Class Hierarchy  This Package  Previous  Next  Index