Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christs8920/rpc-c
An RPC server - client project written in C
https://github.com/christs8920/rpc-c
c rpc
Last synced: 24 days ago
JSON representation
An RPC server - client project written in C
- Host: GitHub
- URL: https://github.com/christs8920/rpc-c
- Owner: ChrisTs8920
- License: mit
- Created: 2023-07-28T11:59:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-03T10:15:16.000Z (6 months ago)
- Last Synced: 2024-11-11T19:15:28.707Z (3 months ago)
- Topics: c, rpc
- Language: C
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RPC - Sun Implementation
## Description
This RPC project uses the Sun Implementation to create a concurrent server that serves the following methods - calculations:
- Dot product (X * Y)
- mean values Ex and Ey
- The product r * (X + Y)Main project files:
- RPC server (ask1_server.c)
- RPC client / Socket server (ask1_client.c)
- Socket client (client.c)A user (socket client) connects to the socket server using TCP AF_INET socket. The user enters which method to use (1, 2 or 3), and the necessary data. X and Y are vectors, and r is a real (float) number.
The RPC client receives this data and sends it to the RPC server, which implements the above methods.>*This project was made during my Distributed Systems course in University.*
>**Tested using WSL 2.0, Windows 11.**
## How to run
1. ```sudo apt-get install rpcbind```
2. ```sudo rpcbind```
3. ```rpcgen –C –a ask1.x```
4. ```make``` ```//will probably need to rename makefile to Makefile.```
5. ```gcc client.c –o client```
6. ```./ask1_server```
7. ```./ask1_client localhost ```
8. ```./client localhost ```