Giter Club home page Giter Club logo

socket-programming's Introduction

Socket-Programming

Operating Systems Homework

Assignment#3: DEU Signal v1.0

Goal

In this assignment, you will implement server side and client side socket programming.

Implementation Details & Requirements

Nowadays, instant messaging applications are used very often by end users. WhatsApp, the most popular of these applications, recently announced that it will make some changes in the security policy it will follow in our country. With this development, such applications immediately have been discussed by people and the search for a more secure application has started.

With this assignment, you will start to develop an instant messaging application. You will implement the first phase for this application. In the first phase, people can send non-secure messages to others using the messaging server. They can be sent and received using JSON format that contains from, to and message key-fields. In this system, we must have a messaging server and we may have more than a client.

The server must be running up always for the system to work. It executes commands which are taken by clients and controls and manages the system. The server will be hosted on localhost and its port is 3205. When the client connects successfully to the server, it will enter its private phone_number (username) initially. Then it is defined in the server system.

● username must be similar to phone number like [08500232000]

The commands are described in below can be used in the system: ● -gcreate group_name: Creates a new specified group. The groups have been protected with non-encrypted passwords. The system will ask to define a password.
● -join username/group_name: Enter to the specified username or group name. If the group is private, the client must know the password for entering.
● -exit group_name: Quit from the group that you are in.
● -send message_body: Send a JSON-formatted message to the group that you are in.
● -whoami Shows your own username (phone_number) information.
● -exit Exit the program.

socket-programming's People

Contributors

gokselelpeze 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.