{"id":37744907,"url":"https://github.com/hazzery/socket-programming","last_synced_at":"2026-01-18T01:04:21.153Z","repository":{"id":191948362,"uuid":"685724259","full_name":"hazzery/socket-programming","owner":"hazzery","description":"Sever-Client program pair capable of delivering messages between clients.","archived":false,"fork":false,"pushed_at":"2026-01-12T20:42:23.000Z","size":312,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T01:29:09.985Z","etag":null,"topics":["python","python3","socket-programming","tcp-client","tcp-server"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hazzery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-31T21:36:37.000Z","updated_at":"2025-02-24T19:33:28.000Z","dependencies_parsed_at":"2023-10-26T03:45:11.079Z","dependency_job_id":"494d1ffb-6615-4ffb-9057-d4564a65e380","html_url":"https://github.com/hazzery/socket-programming","commit_stats":null,"previous_names":["hazzery/socket-programming"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hazzery/socket-programming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazzery%2Fsocket-programming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazzery%2Fsocket-programming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazzery%2Fsocket-programming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazzery%2Fsocket-programming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazzery","download_url":"https://codeload.github.com/hazzery/socket-programming/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazzery%2Fsocket-programming/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28525474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"ssl_error","status_checked_at":"2026-01-18T00:39:39.467Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["python","python3","socket-programming","tcp-client","tcp-server"],"created_at":"2026-01-16T14:14:32.555Z","updated_at":"2026-01-18T01:04:21.123Z","avatar_url":"https://github.com/hazzery.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Socket Programming\n\n![unittests passing](https://github.com/hazzery/socket-programming/actions/workflows/unittests.yml/badge.svg)\n[![codecov](https://codecov.io/gh/hazzery/socket-programming/graph/badge.svg?token=6GQA3I43XT)](https://codecov.io/gh/hazzery/socket-programming)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/hazzery/socket-programming/master.svg)](https://results.pre-commit.ci/latest/github/hazzery/socket-programming/master)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)\n\n## Note\n\nThis project is under current development, check the [`dev` branch](https://github.com/hazzery/socket-programming/tree/dev)\nto see the latest contributions.\n\n## Usage Instructions\n\nTo start the server program, execute the following command in the project directory.\n\n```bash\npython3 -m server \u003cport_number\u003e\n```\n\nThis starts up a welcoming socket, which listens for client connections\non the specified `port_number` for incoming connections.\n\nTo send and read messages, you must execute the client program using the\nfollowing command.\n\n```bash\npython3 -m client \u003cserver_address\u003e \u003cport_number\u003e \u003cusername\u003e \u003cmessage_type\u003e\n```\n\nHere, `server_address` is the IP address of the computer in which the server\nprogram is running on, `port_number` is the port number on which the server\nprogram is listening for incoming connections, `username` is the name of the\nclient connecting to the server, and `message_type` is the type of request to\nsend to the server. This can be either `create` to send somebody a message,\nor `read` to receive messages that have been sent to you.\n\nUpon making a Create request, you will be prompted to enter the name of the\nrecipient of your message, and the message you would like to send them.\n\n## Example Usage\n\n### Server\n\n```bash\npython3 -m server 12000\n```\n\n### Client 1\n\n```bash\npython3 -m client localhost 12000 Alice create\nJohn\nHello John! How are you?\n```\n\n### Client 2\n\n```bash\npython3 -m client localhost 12000 John read\n```\n\n## Licence\n\nThis project is licenced under the GNU AGPL version 3\n\n![AGPLv3](https://www.gnu.org/graphics/agplv3-with-text-162x68.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazzery%2Fsocket-programming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazzery%2Fsocket-programming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazzery%2Fsocket-programming/lists"}