{"id":32564199,"url":"https://github.com/cirquit/connector","last_synced_at":"2026-07-03T06:32:20.141Z","repository":{"id":80313611,"uuid":"154169985","full_name":"cirquit/connector","owner":"cirquit","description":"A C++ wrapper for a TCP/UDP server and client","archived":false,"fork":false,"pushed_at":"2018-10-24T15:05:55.000Z","size":401,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T03:56:14.933Z","etag":null,"topics":["cmake","cpp","library","tcp","template","udp"],"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/cirquit.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,"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":"2018-10-22T15:39:41.000Z","updated_at":"2022-07-02T02:27:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"67cc6a1a-a75b-4b5c-b8b8-8fd73460edf7","html_url":"https://github.com/cirquit/connector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cirquit/connector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirquit%2Fconnector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirquit%2Fconnector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirquit%2Fconnector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirquit%2Fconnector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cirquit","download_url":"https://codeload.github.com/cirquit/connector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirquit%2Fconnector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35075801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"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":["cmake","cpp","library","tcp","template","udp"],"created_at":"2025-10-29T03:55:31.026Z","updated_at":"2026-07-03T06:32:20.134Z","avatar_url":"https://github.com/cirquit.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Connector\n=========\n\nA simple C++ wrapper around the TCP and UDP send/receive functionality in C. \n\nWritten and developed by Justine Probst [[github](https://github.com/jusnelda)] and Alexander Isenko [[github](https://github.com/cirquit)] in the Formula Student Season 2018 for the [municHMotorsport](https://www.munichmotorsport.de/) club. \n\nIf you see this on github - this is only a mirror of our internal repository, made public to allow recruits to easily clone it if they don't have any access yet. \n\n### Build\n```bash\n$ git clone git@gitlab.munichmotorsport.de:FSD/Connector.git \n$ mkdir build  \n$ cd build  \n$ cmake ..  \n$ make  \n$ sudo make install\n```  \n\n### Usage\n\nIf you want to use this library after the global installation add this line to your root `CMakeLists.txt` file:\n```cmake\n    find_package(connector 1.0 REQUIRED)\n```\n\nIf you link against this library, add `connector` to `target_link_libraries`, e.g:\n```cmake\n    target_link_libraries(${your-awesome-file} ${your-awesome-library} connector )\n```\n\nExample usage can be found in [tests](tests) directory. This is a very simple [PING](tests/pinger.cc) / [PONG](tests/ponger.cc) server/client example:\n\n```c++\n#include \u003cthread\u003e // std::this_thread::sleep_for\n\n#include \u003cconnector-1.0/server.h\u003e\n#include \u003cconnector-1.0/client.h\u003e\n#include \u003cconnector-1.0/autogen-CONNECTOR-macros.h\u003e\n\nint main()\n{\n    using namespace std::chrono_literals;\n    const int receive_port = 4444;\n    const int send_port    = 4445;\n    const std::string ip ( \"127.0.0.1\" );\n    connector::server\u003c connector::UDP \u003e receiver( receive_port );\n    connector::client\u003c connector::UDP \u003e sender( send_port, ip );\n    sender.init();\n    receiver.init();\n\n    uint32_t ping = 1;\n    uint32_t pong = 2;\n    uint32_t received = 0;\n\n    // initial pong\n    sender.send_udp\u003c uint32_t \u003e( ping );\n\n    while( true )\n    {\n        receiver.receive_udp\u003c uint32_t \u003e( received );\n        std::this_thread::sleep_for(200ms);\n        if ( received == pong )\n        {\n            DEBUG_MSG_CONNECTOR(\" Got PONG -\u003e Sending PING\\n\");\n            sender.send_udp\u003c uint32_t \u003e( ping );\n        }\n    }\n}\n```\n\n### Documentation  \nCreated with [doxygen](https://www.stack.nl/~dimitri/doxygen/ \"Doxygen Website\") (with Markdown support)  \n  * [HTML](documentation/html/index.html)\n  * To generate it by yourselves - `doxygen doxygen.config` in the source directory\n\n### Tip\nThe `send_udp()`, `send_tcp()`, `receive_udp()` and `receive_tcp()` functions are overloaded, so you can set the buffer size yourself (e.g. when doing pointer magic):  \n```c++\n  void send_udp(U \u0026 object_to_send, const size_t buffer) const {}\n  void send_tcp(U \u0026 object_to_send, const size_t buffer) const {}\n\n  void receive_udp(U \u0026 object_to_receive, const size_t buffer) {}\n  void receive_tcp(U \u0026 object_to_receive, const size_t buffer) const {}\n```  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirquit%2Fconnector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcirquit%2Fconnector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirquit%2Fconnector/lists"}