Giter Site home page Giter Site logo

reverse_echo_daemon's Introduction

reverse_echo_daemon

RPM BUILD: rpmbuild -ba reverse_echo.spec

The Makefile will create 2 binary files reverse_echo_daemon and reverse_echo client.

Daemon usage: reverse_echo_daemon [-d] [--config CONFIGFILE] -d - starts reverse_echo_daemon as daemon. --config CONFIGFILE - reads the config file from the specified filed (default /etc/reverse_echo.conf).

Client usage: reverse_echo_client The client will start in a shell. Available commands: send - send message to daemon connect - connect to daemon (connect SERVERIP PORT) help exit

Config file structure (empty lines and lines starting with '#' are ignored): #Server port PORT 3538

  #Server ip
  SERVER_IP 127.0.0.1

The daemon will bind to the ip address read from the config file and will start listening for clients. For each client connected the daemon will start a thread in which it will process the data (reverse the message received).

The client will connect to the daemon using the connect command and will send messages using send command. After sending the message the client will wait for the response from daemon.

TODO:

  1. daemon - destroy thread for a disconnected client.
  2. client - add discconect command.
  3. client - add thread for reading data from daemon instead of waiting for it after send

reverse_echo_daemon's People

Contributors

azaharia-wr avatar adrianzaharia 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.