Skip to content

mattgode/Rec15Demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rec15Exercise


This repository contains a small chat server implementation to be used for Recitation 15.

Getting Started


Forking the Repository

In order to gain access to this repository, we would like you to Fork the repsoitory, and then clone your fork onto your local machine. More information about forking can be found here.

Importing into Eclipse

Once you have successfully gained access to this repository, import the project into Eclipse.

Running a Server

To run the server, run the ChatServerImpl class in the edu.cmu.cs.cs214.rec15.server package. Once you run the server, your console should print out:

SERVER: Listening for incoming commands on port 15214.

You may also run this server from the command line:

java -classpath bin/ edu.cmu.cs.cs214.rec15.server.ChatServerImpl

Running a Client

To run the client, run the Main class in the edu.cmu.cs.cs214.rec15 package. Once you run the client, a Java application will open. Alternatively, you can use gradle run to start the client.

Connecting to a Server


You will not be able to send messages until you connect to a chat server. In order to connect to a server, you will be prompted for the following information:

Textbox Description
Username The username you would like to use
Host Port The port that the chat server is listening on (e.g. 15214)
Host IP The IP address of the chat server or "localhost" if you plan to run things locally

Please note that in order to connect to the server, the server must be running.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%