{"id":18410270,"url":"https://github.com/racklin/moz-zeromq","last_synced_at":"2025-04-07T09:34:33.691Z","repository":{"id":7795521,"uuid":"9165683","full_name":"racklin/moz-zeromq","owner":"racklin","description":"Mozilla XPCOM Binding for 0MQ.","archived":false,"fork":false,"pushed_at":"2013-04-03T04:45:05.000Z","size":136,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-09T15:28:34.125Z","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/racklin.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-04-02T08:24:59.000Z","updated_at":"2024-04-09T15:28:34.126Z","dependencies_parsed_at":"2022-09-17T21:54:44.173Z","dependency_job_id":null,"html_url":"https://github.com/racklin/moz-zeromq","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fmoz-zeromq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fmoz-zeromq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fmoz-zeromq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fmoz-zeromq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/racklin","download_url":"https://codeload.github.com/racklin/moz-zeromq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223277609,"owners_count":17118600,"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-06T03:30:26.226Z","updated_at":"2024-11-06T03:30:29.928Z","avatar_url":"https://github.com/racklin.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Experimental Mozilla XPCOM bindings for 0MQ\n----------------------------------------\nThis is Mozilla XPCOM bindings for [0MQ](http://www.zeromq.org) (2.2.x recommended).\n\n\nBuild for Linux\n----------------------------------------\nDebian or Ubuntu \nRequired Packages cmake / xulrunner-dev / libzmq\n\n1. cmake .\n2. make\n\nBuild for MacOSX or specified XULRunner SDK\n----------------------------------------\nbrew install cmake pkg-config .\n\n1. build zeromq 2.2.x.\n2. download and untar xulrunner-sdk.\n3. cmake -D XULRUNNER-SDK=/usr/local/xulrunner-sdk .\n4. make\n\nInstall\n----------------------------------------\nCopy built .so and .xpt to your xulrunner application's components directory.\n\n\nExamples\n----------------------------------------\n```\n// create new zmq context\nvar zmqContext = Components.classes[\"@racklin.gmail.com/zmq;1\"].createInstance(Components.interfaces.nsIZMQ);\n\n// dump zmq version\n// alert or console.log\nalert(zmqContext.version);\n\n// init zmq context with io threads number\nzmqContext.init(1);\n\n// create socket with type\nzmqContext.socket(zmqContext.ZMQ_REQ);\n\n// connect to endpoint\nzmqContext.connect(\"tcp://127.0.0.1:5555\");\n\n// send\nzmqContext.send(\"hello world.\");\n\n// recv\nvar message = zmqContext.recv();\n\n// close socket\nzmqContext.close();\n\n// terminate context\nzmqContext.term();\n\n```\n\nLicense\n-----------------------------\nLicensed under the [LGPL License](http://www.gnu.org/licenses/lgpl.html).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracklin%2Fmoz-zeromq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fracklin%2Fmoz-zeromq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracklin%2Fmoz-zeromq/lists"}