zcmoore/hanasu — pull request #5 by BlackRai (2014-03-25 06:48:42+00:00)
Title: Server Upload

Essential upload of first working server.

EncryptedMessage Implementation

Contains constructor to set and get methods

Used class for two reasons

Determining purpose of message

(ie Logout, amount of clients connected, or just message)

Sending encrypted byte array

Server Implementation

Operates off sending the EncryptedMessage class through ObjectStreams

Uses a ArrayList of Threads for clients to keep track of them

Requires GUI to use (Command prompt hates threads when I tried)

Each client operates off a unique id

Each client thread contains a username (temp during test till channel is implemented)

NewServerGUI Implementation

Contains one text field for the port (only editable when no server is running)

One button to start to the server

Two text areas

Debugging (only present on gui if debugging is turned on, in constructor)

Server can tell if debugging is on or off to stop printing messages (only useful if not encrypted)

Event for all the errors and responses