Git Product home page Git Product logo

client-server's Introduction

John's Demo Banner

Client-Server

This Repo contains two programs, one for the Server side application, and one for the Client side application. The Server side application is a single threaded server that accepts requests from clients, and the Client side application is multithreaded capable of spawning numerous client sessions that connect to the server.

What does this project do?

  • Establishes a connection to a server using Java’s Socket Server library when provided the appropriate server IP and Port number.
  • Takes user input and stores it in an ArrayList and returns it to the user as the response of the server.
  • Upon establishing connection, the user can enter a command that will display the Date and Time, Uptime, Memory use, Netstat, current Users, Running Processes, or Test Response of the server.

What I learned from this project?

  • I learned how to interact with a server using a client application, using Java's Java net socket.

This project in action!

Step 1:

Is to run the server application first where it will start listening for client requests on the specified network address and port that is hardcoded. (P.S. Avoid hard coding IP addresses and Port numbers in production environments because if you redeploy your app on a different host it will have issues)

CleanShot 2022-10-28 at 13 14 52@2x

Upon running the server this is what you will see in your console

Step 2:

Is to run the client side application and you will be prompted with 7 options.

CleanShot 2022-10-28 at 13 18 38@2x


client-server's People

Contributors

johnwywallace avatar

Watchers

 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.