{"id":27247516,"url":"https://github.com/georgiakt/server-client-using-rpc-and-sockets","last_synced_at":"2025-04-10T22:57:54.118Z","repository":{"id":186592428,"uuid":"675367609","full_name":"GeorgiaKt/Server-Client-using-RPC-and-Sockets","owner":"GeorgiaKt","description":"Server-Client computational project made in C with the use of RPC and Sockets.","archived":false,"fork":false,"pushed_at":"2023-08-08T23:03:46.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T22:57:51.272Z","etag":null,"topics":["c","client-server","command-line","makefile","rpc","sockets","wsl2"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GeorgiaKt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-06T17:20:53.000Z","updated_at":"2025-03-28T21:22:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"56e1e9c3-78bf-4da0-9b64-68d9d9618d2d","html_url":"https://github.com/GeorgiaKt/Server-Client-using-RPC-and-Sockets","commit_stats":null,"previous_names":["georgiakt/server-client-using-rpc-and-sockets"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiaKt%2FServer-Client-using-RPC-and-Sockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiaKt%2FServer-Client-using-RPC-and-Sockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiaKt%2FServer-Client-using-RPC-and-Sockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiaKt%2FServer-Client-using-RPC-and-Sockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeorgiaKt","download_url":"https://codeload.github.com/GeorgiaKt/Server-Client-using-RPC-and-Sockets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312171,"owners_count":21082638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","client-server","command-line","makefile","rpc","sockets","wsl2"],"created_at":"2025-04-10T22:57:53.595Z","updated_at":"2025-04-10T22:57:54.104Z","avatar_url":"https://github.com/GeorgiaKt.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server-Client using RPC and Sockets\n\n## Description\n  In this project there is a Server-Client communication, combining RPC and Sockets in C. Starting with the socket communication, there is a client that is responsible for communicating with the user, meaning printing menu, reading data and printing back the results calculated and there is also a server. The socket server is, also, a RPC client at the same time. So, when the socket server receives the data sent from the client (socket client), then calls a function responsible for the corresponding calculations. The RPC server is the one that has the functions responsible for calculating the results.\n\nMain data types that are used: vectors X and Y, variable n for the length of both vectors, variable r for a fixed value given.\n\nThe Calculations that can be made:\n- Inner Product: (X*Y)\n- Average Values: Ex, Ey (for each vector)\n- Product: r*(X+Y)\n\n## Prerequisites\n- RPC installed\n- Linux environment or WSL\n\n## How to compile\n```\n    gcc client.c -o client\n    make\n```\n \n## How to run\nRun RPC Server:\n```\n    ./ask_rpc_server\n```\nRun RPC Client / Socket Server:\n```\n    ./ask_rpc_client localhost \u003cport\u003e\n```\nRun Socket Client:\n```\n    ./client localhost \u003cport\u003e\n```\n*Each command should be executed in a different terminal.*\n  \nBefore running make sure you have run `sudo rpcbind`!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgiakt%2Fserver-client-using-rpc-and-sockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorgiakt%2Fserver-client-using-rpc-and-sockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgiakt%2Fserver-client-using-rpc-and-sockets/lists"}