Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnandersen777/librpc
C implementation of various client and server protocols
https://github.com/johnandersen777/librpc
c rpc-client rpc-server
Last synced: about 15 hours ago
JSON representation
C implementation of various client and server protocols
- Host: GitHub
- URL: https://github.com/johnandersen777/librpc
- Owner: johnandersen777
- Created: 2016-03-29T16:23:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-25T18:51:24.000Z (over 5 years ago)
- Last Synced: 2024-10-24T09:12:27.965Z (25 days ago)
- Topics: c, rpc-client, rpc-server
- Language: C
- Homepage: https://pdxjohnny.github.io/librpc
- Size: 65.4 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# librpc [![Travis Status](https://travis-ci.org/pdxjohnny/librpc.svg?branch=master)](https://travis-ci.org/pdxjohnny/librpc) [![Coverity Status](https://scan.coverity.com/projects/8482/badge.svg)](https://scan.coverity.com/projects/8482/)
Install
---From source:
```bash
git clone https://github.com/pdxjohnny/librpc
cd librpc
autoreconf -i
./configure
make
sudo make install
```Building With librpc
---The simplest example is in example/simple.ccp and once you have run `make &&
make install` then it will compile with the following command.```bash
g++ -static example/simple.cpp -lrpc -o simple
./simple
echo $?
```
> Should be 42Apache Benchmark
---Single Threaded server
![AB](http://i.imgur.com/Uqq2oVH.gif)
```
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking 192.168.1.20 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requestsServer Software: librpc
Server Hostname: 192.168.1.20
Server Port: 40000Document Path: /hello
Document Length: 13 bytesConcurrency Level: 1
Time taken for tests: 34.609 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 320000 bytes
HTML transferred: 130000 bytes
Requests per second: 288.94 [#/sec] (mean)
Time per request: 3.461 [ms] (mean)
Time per request: 3.461 [ms] (mean, across all concurrent requests)
Transfer rate: 9.03 [Kbytes/sec] receivedConnection Times (ms)
min mean[+/-sd] median max
Connect: 1 2 0.7 1 18
Processing: 1 2 0.8 2 22
Waiting: 1 1 0.7 1 21
Total: 2 3 1.1 3 23
WARNING: The median and mean for the initial connection time are not within a
normal deviation
These results are probably not that reliable.Percentage of the requests served within a certain time (ms)
50% 3
66% 3
75% 4
80% 4
90% 5
95% 6
98% 7
99% 7
100% 23 (longest request)
```