{"id":21578575,"url":"https://github.com/00nx/tcp-connection","last_synced_at":"2025-07-16T08:12:32.281Z","repository":{"id":260026458,"uuid":"871519971","full_name":"00nx/tcp-connection","owner":"00nx","description":"an example for a simple tcp connection written purely in C","archived":false,"fork":false,"pushed_at":"2024-10-12T07:33:15.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T14:17:50.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/00nx.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-10-12T07:29:55.000Z","updated_at":"2024-10-12T07:33:19.000Z","dependencies_parsed_at":"2024-10-29T05:41:42.834Z","dependency_job_id":null,"html_url":"https://github.com/00nx/tcp-connection","commit_stats":null,"previous_names":["00nx/tcp-connection"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00nx%2Ftcp-connection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00nx%2Ftcp-connection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00nx%2Ftcp-connection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00nx%2Ftcp-connection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/00nx","download_url":"https://codeload.github.com/00nx/tcp-connection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244177666,"owners_count":20410996,"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":[],"created_at":"2024-11-24T13:11:00.679Z","updated_at":"2025-03-18T07:31:52.368Z","avatar_url":"https://github.com/00nx.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TCP Server in C\n\nThis project is a simple implementation of a TCP server in C using the `sockets`\n\n## How It Works\n- The server creates a socket using the `socket()` function\n- Sets socket options like `SO_REUSEADDR` and `SO_REUSEPORT` using `setsockopt()` to allow reuse of the address\n- Binds the socket to an IP address (`INADDR_ANY` for any available interface) and a specified port (8080 in this case)\n- Listens for incoming client connections using `listen()`\n- Accepts incoming connections using `accept()` and prints any data sent by the client\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F00nx%2Ftcp-connection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F00nx%2Ftcp-connection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F00nx%2Ftcp-connection/lists"}