{"id":15517576,"url":"https://github.com/bodgit/libevent-stomp","last_synced_at":"2025-09-25T15:23:50.046Z","repository":{"id":7292609,"uuid":"8608321","full_name":"bodgit/libevent-stomp","owner":"bodgit","description":"Non-blocking STOMP client for libevent-based applications","archived":false,"fork":false,"pushed_at":"2013-11-18T09:54:01.000Z","size":700,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T22:49:04.101Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bodgit.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":"2013-03-06T16:54:58.000Z","updated_at":"2013-11-19T17:59:24.000Z","dependencies_parsed_at":"2022-09-22T12:14:21.235Z","dependency_job_id":null,"html_url":"https://github.com/bodgit/libevent-stomp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bodgit/libevent-stomp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Flibevent-stomp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Flibevent-stomp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Flibevent-stomp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Flibevent-stomp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bodgit","download_url":"https://codeload.github.com/bodgit/libevent-stomp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Flibevent-stomp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272914588,"owners_count":25014448,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"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":[],"created_at":"2024-10-02T10:13:49.269Z","updated_at":"2025-09-25T15:23:44.982Z","avatar_url":"https://github.com/bodgit.png","language":"C","readme":"libevent-stomp - asynchronous non-blocking STOMP client\n=======================================================\n\nBased around libevent bufferevents and designed to be used as part of a bigger\nlibevent-based application.\n\n+ Should support STOMP 1.0, 1.1 \u0026 1.2.\n+ SSL/TLS support thanks to libevent\\_openssl.\n+ Heartbeat support.\n\nExample usage:\n\n    #include \u003cstdio.h\u003e\n    \n    #include \"stomp.h\"\n    \n    void message_cb(struct stomp_connection *, struct stomp_subscription *,\n        struct stomp_frame *, void *);\n    void connect_cb(struct stomp_connection *, struct stomp_frame *, void *);\n    \n    void\n    message_cb(struct stomp_connection *connection,\n        struct stomp_subscription *, struct stomp_frame *frame, void *arg)\n    {\n            printf(\"Got message %s\\n\", frame-\u003ebody);\n    }\n    \n    void\n    connect_cb(struct stomp_connection *connection, struct stomp_frame *frame,\n        void *arg)\n    {\n            struct stomp_header *header;\n            struct stomp_subscription *subscription;\n    \n            if ((header = stomp_frame_header_find(frame, \"server\")) != NULL)\n                    printf(\"Connected to %s\\n\", header-\u003evalue);\n    \n            subscription = stomp_subscription_new(connection, \"/queue/test\",\n                STOMP_ACK_AUTO);\n            stomp_subscription_setcb(subscription, message_cb, NULL);\n            stomp_subscribe(connection, subscription);\n    }\n    \n    int\n    main(int argc, char *argv[])\n    {\n            struct event_base *base;\n            struct timeval tv = { 10, 0 };\n            struct stomp_connection *c;\n            char *user = \"guest\";\n            char *pass = \"guest\";\n    \n            base = event_base_new();\n            if (stomp_init(base) \u003c 0)\n                    return (-1);\n    \n            /* Pass an SSL_CTX * as argument #7 for SSL/TLS support */\n            if ((c = stomp_connection_new(\"192.0.2.1\", STOMP_DEFAULT_PORT,\n                STOMP_VERSION_ANY, \"/\", user, pass, NULL, tv, 1000,\n                1000)) == NULL)\n                    return (-1);\n    \n            stomp_connection_setcb(c, connect_cb, NULL, NULL, NULL, NULL);\n    \n            stomp_connect(c);\n    \n            event_base_dispatch(base);\n    \n            return (0);\n    }\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodgit%2Flibevent-stomp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodgit%2Flibevent-stomp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodgit%2Flibevent-stomp/lists"}