Package org.cis1200


package org.cis1200
  • Class
    Description
    A Command represents a string sent from a client to the server, after parsing it into a more convenient form.
    The CommandParser class includes a single static method that can convert a String into the appropriate Command object that it represents.
    Represents a Command issued by a client to create a new channel.
    ErrorCode is an enumerated type (enum) that lists all possible response codes a server can send to a client in the case of an erroneous command.
    Represents a Command issued by a client to add another client to an invite-only channel owned by the sender.
    Represents a Command issued by a client to join an existing channel.
    Represents a Command issued by a client to remove another client from a channel owned by the sender.
    Represents a Command issued by a client to leave a channel.
    Represents a Command issued by a client to send a message to all other clients in the channel.
    Represents a Command issued by a client to change his or her nickname.
    A message that the server sends to a client in response to a command Each response has two parts: the userId for the recipient of the response and a string containing the text of the message itself.
    A ResponseSet stores a set of messages that should be sent in response to processing a command.
    The ServerBackend handles networking and communication with clients, and is responsible for managing the server state and executing tasks.
    Initializes and starts a ServerBackend, a ServerModel, and a very basic UI to indicate that the server is running.
    The ServerModel is the class responsible for tracking the state of the server, including its current users and the channels they are in.