Giter Club home page Giter Club logo

communication-networks-project's Introduction

Communication Networks Project

Name/AEM: Dimitrios Athanasiadis - 3724

Usage:

Client: java -jar Client.jar <ip> <port number> <FN_ID> <args>
Server: java -jar Server.jar <port number>

General Classes:

  • Account.java
    • Holds information about a specific account, such as username, associated authToken and message box.
  • Message.java
    • Holds information about a specific message, such as sender, receiver, body and message read state. Additionally, each message has an auto-increment identifier.

Client Classes:

  • client.java
    • The client main class. If the command line arguments are valid, it creates a MessagingClient object, otherwise it prints the usage message.
  • MessagingClient.java
    • Creates a socket and connects to the server, on the given address and port. It sends the entered command line arguments to the server and waits for response.

Server Classes:

  • server.java
    • The server main class. If the command line arguments are valid, it creates a MessagingServer object, otherwise it prints the usage message.
  • MessagingServer.java
    • Creates a socket on the given port and listens for connections. For every new client, a ClientHandler object is created, in a new thread.
  • ClientHandler.java
    • ClientHandler class instances are intended to be executed by a new thread. In run() method the command line arguments of client are received and passed to the RequestHandler.
  • RequestHandler.java
    • Processes client requests. Based on the request FN_ID, calls the appropriate method. The supported methods are:
      1. CreateAccount(): creates a new account
      2. ShowAccounts(): shows registered accounts
      3. SendMessage(): sends new message to user
      4. ShowInbox(): shows user inbox
      5. ReadMessage(): reads a message from inbox
      6. DeleteMessage(): delete a message from inbox

communication-networks-project's People

Contributors

dimitrios-ath 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.