All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class KQMLLayer.KQMLServerThread

Abstract.Connection
   |
   +----Abstract.ServerThread
           |
           +----BaseLayer.BServerThread
                   |
                   +----KQMLLayer.KQMLServerThread

public class KQMLServerThread
extends BServerThread
KQMLServerThread is a thread which accept() connection from the other agents. Then it will generate KQMLRecvThread to listen and send message

See Also:
KQMLRecvThread, BServerThread

Constructor Index

 o KQMLServerThread()
Default constructor
 o KQMLServerThread(Address, ConnectionTable, MessageBuffer, Security)
Constructor using Address object

Method Index

 o createReceiverThread(Socket)
Create receiver thread using the socket, accepted by the 'run()' method.

Constructors

 o KQMLServerThread
 public KQMLServerThread()
Default constructor

 o KQMLServerThread
 public KQMLServerThread(Address address,
                         ConnectionTable connections,
                         MessageBuffer mesg,
                         Security security) throws ConnectionException, UnknownHostException, IOException
Constructor using Address object

Parameters:
address - Address object which contains port number
connections - connection table
mesg - the message queue
security - Security object to be used to check connection protocol

Methods

 o createReceiverThread
 protected synchronized void createReceiverThread(Socket socket)
Create receiver thread using the socket, accepted by the 'run()' method.

Parameters:
socket - Socket, accepted by the ServerSocket
Throws: ConnectionException
if occurs

All Packages  Class Hierarchy  This Package  Previous  Next  Index