Code Monkey home page Code Monkey logo

rec15demo's Introduction

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.

rec15demo's People

Contributors

tsun1215 avatar nshoemaker avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.