Coder Social home page Coder Social logo

rpc's Introduction

RPC - Remote Procedure Call - Distributed Systems project

Binder is implemented in C++ and compiled with "g++" Rpc is implemented in C and compiled with "gcc"

The makefile is written for the GNU Make 3.81 (the version on the student server).

First of all run 'make' to compile binder.cc and generate RPC library. Also, 'make binder' compiles binder.cpp separately and to complie the library, type only 'make librpc.a'.

Now, run ./binder, and copy BINDER_ADDRESS and BINDER_PORT which is used in other machines to connecting to the binder.

To compile client use: gcc -L. -std=c99 client1.c -lrpc -pthread -o client then run it with: ./client

To compile server use: gcc -L. server_functions.c server_function_skels.c server.c -lrpc -lpthread -o server then run it with: ./server

Additionally, pthread library is used for RPC library. NUM_THREADS is the number of worker threads that handle requests from clients. It is defined in the makefile and currently set to 50. If there is a need for more workers because there are more clients, the user need to change that value to the desired one (> 0) and recompile the library.

rpc's People

Contributors

rrasulzade avatar

Stargazers

Chaoqun Han avatar Eason Wang avatar Yu Hexuan avatar

Watchers

James Cloos avatar  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.