Git Product home page Git Product logo

echo_server's Introduction

Echo Server

This is an echo server program.

The first program creates a socket on the server. The socket waits for a client socket to connect to it then it for some kind of request, server socket it is waiting for some text.

When gradle runClient is run, the client creates a socket on the same port that the server socket has been created on. The user is then prompted to enter some input and this input is written to the socket stream and passed to the server.

The server socket then retrieves the input from the input stream and writes what it receives back to the output stream. This is why the program is called an "echo server", when you type some input, your input will then be echoed back to you.

Running the program:

To run the program, start the server by typing the following in your command line:

gradle runServer

To start running the client, open another command line window then run the following:

gradle runClient

Run the tests

Right now the tests are from within Intellij.

echo_server's People

Contributors

katerina-codes avatar

Watchers

James Cloos 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.