Class MapReqReceiver



    Purpose

    To receive map requests from a client and put those requests in a shared queue which stores all the map requests from all the clients.

    Functionality

    Each ClientManager has a MapReqReceiver. A MapReqReceiver is a thread getting messages from a specified DataInputStream. The specified DataInputStream in this project is a socket connecting a client and the server. Once a message string arrives, the MessageParser in the MapReqReceiver will parse the string and convert it to the certain message format, and put it into the mapreqQueue.

    Structure

    A MapReqReceiver has a MessageParser: To parse the incoming message string and converts it to the message format.


    See also

    ClientManager
    SharedQueue




    [Go to Class Index Table] [Go back to Program Architecture Diagram]
    [Source Code of MapReqReceiver.java]