{"id":17693613,"url":"https://github.com/andy5995/c_networking_examples","last_synced_at":"2026-03-01T17:33:02.617Z","repository":{"id":40343940,"uuid":"483121759","full_name":"andy5995/c_networking_examples","owner":"andy5995","description":"TCP and UDP examples of networking in C","archived":false,"fork":false,"pushed_at":"2025-08-11T20:53:44.000Z","size":74,"stargazers_count":6,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"trunk","last_synced_at":"2025-10-08T15:45:26.398Z","etag":null,"topics":["c","meson","mit","networking","tcp","udp"],"latest_commit_sha":null,"homepage":"https://github.com/andy5995/c_networking_examples","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/andy5995.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":"2022-04-19T06:22:26.000Z","updated_at":"2025-04-17T04:01:42.000Z","dependencies_parsed_at":"2025-05-13T03:19:01.881Z","dependency_job_id":null,"html_url":"https://github.com/andy5995/c_networking_examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/andy5995/c_networking_examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy5995%2Fc_networking_examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy5995%2Fc_networking_examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy5995%2Fc_networking_examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy5995%2Fc_networking_examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andy5995","download_url":"https://codeload.github.com/andy5995/c_networking_examples/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy5995%2Fc_networking_examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29976279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["c","meson","mit","networking","tcp","udp"],"created_at":"2024-10-24T13:45:40.908Z","updated_at":"2026-03-01T17:33:02.595Z","avatar_url":"https://github.com/andy5995.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![C/C++ CI](https://github.com/andy5995/c_networking_examples/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/andy5995/c_networking_examples/actions/workflows/c-cpp.yml)\n\n# C Networking Examples\n\nTCP and UDP examples of networking in C\n\nWebsite: https://github.com/andy5995/c_networking_examples\n\n## TCP SDL Window Updater server and client\n\nWhen you connect to the server with the client, a window rendered with sdl\nwill be created. Clicking in the client or server window will move a geometric\nshape to the coordinates where you clicked.\n\n## Dual Stack Echo Server\n\nThe server listens for connections on both ipv4 and ipv6 addresses. To test,\nrun the server, and in a different window, enter in either of the following:\n\n    ./dual_stack_echo_client 127.0.0.1\n    ./dual_stack_echo client ::1\n\n## TCP File Transfer\n\nTransfer a plain text or binary file of any size from the client to\nthe server\n\n## TCP Chat\n\nSimple chat program\n\n## TCP Chat server with multiple connections\n\nHandles multiple connections. The server will tell you when clients\nconnect and disconnect. Every client will see the message sent by any\nother single client. Use any telnet program to connect.\n\nAdapted from [pollserver.c](https://beej.us/guide/bgnet/html/#fnref29)\n\n\n## UDP echo server/client\n\nThe server echoes a message sent by the client back to the client.\n\n    client usage: ./udp_echo_client host port msg...\n    server usage: ./udp_echo_server port\n\n## Additional Information\n\nUnless otherwise specified, the clients in these examples use\n\"127.0.0.1\" for the address and port 8080 as the defaults, but they\ncan be changed at runtime:\n\n    -a \u003caddress\u003e\n    -p \u003cport\u003e\n\nThe servers will most likely bind to \"0.0.0.0\" and there's no option\nto change that yet.\n\n## Compiling\n\n```sh\nmeson builddir\ncd builddir\nninja\n```\n\n## See Also\n\n* [Beej's Guide to Network Programming](https://beej.us/guide/bgnet/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandy5995%2Fc_networking_examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandy5995%2Fc_networking_examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandy5995%2Fc_networking_examples/lists"}