{"id":22513241,"url":"https://github.com/musooo/socket-comunication","last_synced_at":"2025-10-31T08:36:07.895Z","repository":{"id":266800981,"uuid":"899051875","full_name":"Musooo/socket-comunication","owner":"Musooo","description":"This project demonstrates a straightforward implementation of socket-based communication between a server and a client in C.","archived":false,"fork":false,"pushed_at":"2024-12-15T10:07:04.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T03:18:32.585Z","etag":null,"topics":["c","client-server","example","socket","socket-communication","tcp-socket","udp-socket"],"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/Musooo.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-05T14:32:40.000Z","updated_at":"2024-12-20T19:52:30.000Z","dependencies_parsed_at":"2024-12-06T08:30:43.781Z","dependency_job_id":null,"html_url":"https://github.com/Musooo/socket-comunication","commit_stats":null,"previous_names":["musooo/socket-comunication"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Musooo%2Fsocket-comunication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Musooo%2Fsocket-comunication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Musooo%2Fsocket-comunication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Musooo%2Fsocket-comunication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Musooo","download_url":"https://codeload.github.com/Musooo/socket-comunication/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245950530,"owners_count":20699087,"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","example","socket","socket-communication","tcp-socket","udp-socket"],"created_at":"2024-12-07T03:10:47.670Z","updated_at":"2025-10-31T08:36:07.791Z","avatar_url":"https://github.com/Musooo.png","language":"C","readme":"# Socket Communication Program\n\nThis project demonstrates a simple client-server communication using sockets in C. The client sends a message containing a name and age to the server, and the server responds with a greeting message.\n\n## Prerequisites\n\n- GCC compiler\n- Make\n\n## Files\n\n- `client.c`: The client program\n- `server.c`: The server program\n- `Makefile`: The makefile to build the programs\n\n## Build the Programs\n\nTo compile the client and server programs, run the following command in the project directory:\n\n```sh\nmake\n```\n\nThis will generate the executables `client` and `server`.\n\n## Running the Programs\n\n### Start the Server\n\nFirst, start the server by running:\n\n```sh\nmake run_server\n```\n\nThe server will start and listen for incoming connections on port `20002`.\n\n### Run the Client\n\nIn a separate terminal, run the client with the following command:\n\n```sh\nmake run_client ARGS=\"\u003cname\u003e \u003cage\u003e\"\n```\n\nReplace `\u003cname\u003e` with the name you want to send and `\u003cage\u003e` with the age. For example:\n\n```sh\nmake run_client ARGS=\"Alice 30\"\n```\n\nThe client will send the message to the server, and the server will respond with the person identifier.\n\n## Clean Up\n\nTo clean up the compiled files, run:\n\n```sh\nmake clean\n```\n\nThis will remove the generated object files and executables.\n\n## License\n\nThis project is licensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusooo%2Fsocket-comunication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmusooo%2Fsocket-comunication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusooo%2Fsocket-comunication/lists"}