Class MessageReceiver



    Purpose

    To receive action request messages from a client for the server and put those requests in a shared queue which stores all the action requests from all the clients.

    Functionality

    Each ClientManager has a MessageReceiver. A MessageReceiver 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 MessageReceiver will parse the string and convert it to the certain message format and put it into the messageQueue.

    Structure

    A MessageReceiver 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 MessageReceiver.java]