Coder Social home page Coder Social logo

saad486 / serverclientmodel Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 39 KB

It is a multithreaded server and client model. Functionality of server is pretty basic, importance is given to the use of linux system APIs.

C 100.00%
multithreaded-server c linux system-programming system-api fork pthreads-api

serverclientmodel's Introduction

Multithreaded Server Client Model

It is a multithreaded server and client. It is developed in language C and it uses linux system APIs.

how to use this on linux terminal

1) Open two terminals in directory you have cloned.
2) Compile the program with the gcc compiler.
3) execute the server with "./server" (if I have compiled it like :gcc -pthread server.c -o server).
4) Server will print the port number it is listening on.
5) Compile the client in the similar manner.
6) In client,the port number printed by the server is passed as an argument preceeded by ip address.
7) Like ./client localhost/127.0.0.1 ##### (ip would be different if server and client are running on a separate machines.Type the relevant the port number in place of #).
8) Commands guide is given in the help command. type help.

serverclientmodel's People

Contributors

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