{"id":30277028,"url":"https://github.com/mahdialmusaad/unix-network-demo","last_synced_at":"2025-08-16T11:12:53.652Z","repository":{"id":309238066,"uuid":"1035580780","full_name":"mahdialmusaad/unix-network-demo","owner":"mahdialmusaad","description":"A simple networking demo for UNIX systems.","archived":false,"fork":false,"pushed_at":"2025-08-10T17:44:26.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-10T19:25:05.693Z","etag":null,"topics":["c","client","network","server","unix"],"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/mahdialmusaad.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,"zenodo":null}},"created_at":"2025-08-10T17:42:48.000Z","updated_at":"2025-08-10T17:45:13.000Z","dependencies_parsed_at":"2025-08-10T19:25:08.292Z","dependency_job_id":"4dc8f1b1-3acc-4d6d-ac82-6bb8d3ddf9df","html_url":"https://github.com/mahdialmusaad/unix-network-demo","commit_stats":null,"previous_names":["mahdialmusaad/unix-network-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mahdialmusaad/unix-network-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdialmusaad%2Funix-network-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdialmusaad%2Funix-network-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdialmusaad%2Funix-network-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdialmusaad%2Funix-network-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahdialmusaad","download_url":"https://codeload.github.com/mahdialmusaad/unix-network-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdialmusaad%2Funix-network-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270702562,"owners_count":24630877,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","network","server","unix"],"created_at":"2025-08-16T11:12:53.230Z","updated_at":"2025-08-16T11:12:53.643Z","avatar_url":"https://github.com/mahdialmusaad.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\nA simple network client-and-server demo written in C for UNIX-compliant systems, allowing simple chatting between a server and its clients. Features a command system, connection checking and dynamic allocation for the server.\n## Usage\n### Client\nRun the client executable with the following arguments:\n- address: The server's address or name. An example could be `localhost` or your device's name to connect to a server running on the same device, or an IP address.\n- port: The port of the server. This can be a number between 1024 and 65535.\n\nAfter connecting, you can type in a message to be sent to the server. Any incoming messages from the server will be shown as well.\n### Server\nRun the server executable with the following arguments:\n- port: The port to start the server on. Follows the same rules as that of the client above.\n- max-clients: The maximum number of clients allowed to be connected. A negative value will remove this limit.\n- interactive-mode: A non-zero value will enable interactive mode, where you can type in commands as input, as specified below.\n### Commands (server)\nCommands written in the 'interactive' mode of the server are as follows (keywords are case-sensitive):\n- exit: Initiates a clean shutdown of the server.\n- stopint: Exits interactive mode. The server will continue running but no more commands can be issued.\n- \"\\\u003cID\\\u003e \\\u003cMessage\\\u003e\": Sends the given client ID the following message.\n- \"\\\u003cID\\\u003e kick\": Kicks the given client ID.\nThe 'ID' can instead be 'all' to operate on all connected clients.\n## Build\nTo compile the client and server source files, you can run `make` with the provided [Makefile](Makefile).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahdialmusaad%2Funix-network-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahdialmusaad%2Funix-network-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahdialmusaad%2Funix-network-demo/lists"}