Skip to content

ivankatalenic/tcp-chat-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple chat server that supports multiple clients

Building the application

To build the application the Maven build tool is needed.

To build an executable jar file, enter the following: mvn clean compile package. After the build process is complete the resulting jar file will be placed in the target directory.

Running the application

This application requires Java runtime. To run the application, enter the following: java -jar <path-to-jar>. Where <path-to-jar> is an absolute or a relative path to the applications jar file.

Protocol for communicating with the server is as follows:

  1. Establish a TCP connection with the server.
  2. Send a UTF-8 encoded message that represents a clients username.
  3. All further sent UTF-8 encoded messages after the first one will be interpreted as messages from the provided username.

About

Simple chat server that supports multiple clients.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages