Giter Club home page Giter Club logo

multi_tier_client_server's Introduction

ClientServer

Client Server (front end and back end) implementation in C++ using blocking I/O

(main_folder has the main implementation, Rest of the folders were the intermediate steps)

##Build cd main_folder rm server_511.db /* Remove the data base in case it is already there. This DB file stored in persistent medium at the back end of the server*/ make clear make

#Execution :

##Server

$ /server <server_type> <server_number>

use server_type = 0 for front end use server_type = 1 for back end

There is single front end server (primary server), but multiple back ends are available. Use server_number = <1,2,3..> for the servers to be started in server_type is 1.

Define back end server numbers in Server.h file.

##Client

Mutliple clients can be connected to the server.

$ /client <data_file>

data_file : data file need to be given who have three columns. First is the request GET or PUT and then key, value pair according to the request.

Code structure

		Socket_class
		/			\
client class	server class

Same class and same code is used for the front end and back end of the server. The second parameter passed as argument will decide whether it is front end or back end, and code will execute accordingly.

multi_tier_client_server's People

Contributors

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