{"id":20483354,"url":"https://github.com/styczynski/the-socket","last_synced_at":"2025-07-02T19:32:50.176Z","repository":{"id":27734790,"uuid":"31222428","full_name":"styczynski/The-Socket","owner":"styczynski","description":"C/C++ Socket Library","archived":false,"fork":false,"pushed_at":"2018-02-13T16:46:17.000Z","size":97,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T14:42:36.460Z","etag":null,"topics":["c-plus-plus","socket","socket-server","windows"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/styczynski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-23T18:27:01.000Z","updated_at":"2023-06-01T19:38:52.000Z","dependencies_parsed_at":"2022-09-03T03:03:46.139Z","dependency_job_id":null,"html_url":"https://github.com/styczynski/The-Socket","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/styczynski/The-Socket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styczynski%2FThe-Socket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styczynski%2FThe-Socket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styczynski%2FThe-Socket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styczynski%2FThe-Socket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/styczynski","download_url":"https://codeload.github.com/styczynski/The-Socket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styczynski%2FThe-Socket/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263203427,"owners_count":23430028,"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-plus-plus","socket","socket-server","windows"],"created_at":"2024-11-15T16:17:06.621Z","updated_at":"2025-07-02T19:32:50.152Z","avatar_url":"https://github.com/styczynski.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Made by Styczynsky Digital Systems][badge sts]][link styczynski]\n\n[![Platform - Windows][badge support windows]][link styczynski]\n\n# The-Socket\nC/C++ Socket Library\n\nThis library provides an easy-to-use socket interface.\nIt's designed for Windows usage, but it can be easily ported to Linux too.\nGood luck and have fun!\n\n## How to use\nJust include `net.h` to your C/C++ project.\n\n## Example\nThe library provides the well-described simple socket-server chatting appilication.\n\nHow to build the provided example:\n\n * Run `make all`\n * And then run the `./examples/bin/demo.exe -ip IP_ADRESS -port PORT_ADRESS -host` to set up an example socket server and `./examples/bin/demo.exe -ip IP_ADRESS -port PORT_ADRESS -as USERNAME` to run an example socket client.\n * You can alternatively use `./tools/start_test_server.bat` etc.\n * If you're not using windows you can compile demo.cpp with your favourite compiler :)\n * Have fun with the sockets!\n\n## Easy server setup\nNow the server setup is super easy!\n\n```c\n\nserver sv; //Server instance\n\nsv.atIP(ipv4(ip)) //Set up server IP\n.atPort(port) //Set up server port\n.retryWhenFailed() //Always restart server on failure\n.onRun(def_server_generic_handler({ //A new thread will be created of this handler for each connected client.\n    // Hell yeah!\n    // It's pretty easy.\n});\n\n```\n\nThe client set up is so easy too! :)\n\n\n\n[badge support windows]: https://img.shields.io/badge/platform-windows-blue.svg?style=flat-square\u0026logoWidth=20\u0026logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA%2FwD%2FAP%2BgvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH4AgSEisSipueyAAAAHBJREFUSMdjZKA2WPv%2BPzKXkSxDiuf%2FZ7AKIEopbgsW3v%2FPwCOA4AcLMqK7jhjAQo4mUgATA43BqAWjFlADiCvQ1HjsuXNJIwPD%2BgmMtLMAGyCzqBhNRaMWDAELWBiCBRmJrcDJy2hUaj1Q3wIiLQcAUjQgoD1kMJYAAAAASUVORK5CYII%3D\n\n[badge sts]: https://img.shields.io/badge/-styczynsky_digital_systems-blue.svg?style=flat-square\u0026logoWidth=20\u0026logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABYAAAAXCAYAAAAP6L%2BeAAAABmJLR0QA%2FwD%2FAP%2BgvaeTAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH4AgSEh0nVTTLngAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAm0lEQVQ4y2Pc%2Bkz2PwMNAAs2wVMzk4jSbJY%2BD6ccEwONACMsKIh1JSEgbXKeQdr4PO1cPPQMZiGkoC7bkCQD7%2Fx7znDn35AOClK9PEJSBbNYAJz999UGrOLocsM0KHB5EZ%2FXPxiVMDAwMDD8SP3DwJA6kFka5hJCQOBcDwMDAwPDm3%2FbGBj%2BbR8tNrFUTbiAB8tknHI7%2FuTilAMA9aAwA8miDpgAAAAASUVORK5CYII%3D\n\n[link styczynski]: http://styczynski.in\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyczynski%2Fthe-socket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstyczynski%2Fthe-socket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyczynski%2Fthe-socket/lists"}