{"id":16944901,"url":"https://github.com/drbrain/capp","last_synced_at":"2025-06-25T00:41:06.537Z","repository":{"id":7634377,"uuid":"8994187","full_name":"drbrain/capp","owner":"drbrain","description":"A ruby libpcap wrapper that is GVL-friendly","archived":false,"fork":false,"pushed_at":"2015-01-08T23:58:36.000Z","size":524,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-11T22:46:01.174Z","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/drbrain.png","metadata":{"files":{"readme":"README.rdoc","changelog":"History.rdoc","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-24T22:15:12.000Z","updated_at":"2023-08-08T11:53:09.000Z","dependencies_parsed_at":"2022-09-06T05:01:55.555Z","dependency_job_id":null,"html_url":"https://github.com/drbrain/capp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/drbrain/capp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drbrain%2Fcapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drbrain%2Fcapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drbrain%2Fcapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drbrain%2Fcapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drbrain","download_url":"https://codeload.github.com/drbrain/capp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drbrain%2Fcapp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259783241,"owners_count":22910314,"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-10-13T21:19:22.261Z","updated_at":"2025-06-25T00:41:06.473Z","avatar_url":"https://github.com/drbrain.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"= capp\n\nhome :: https://github.com/drbrain/capp\nrdoc :: http://docs.seattlerb.org/capp\nbugs :: https://github.com/drbrain/capp/issues\n\n== Description\n\nCapp is a packet capture library that wraps libpcap.  Capp provides a simple\nAPI for capturing packets and automatically unpacks common packets (including\nEthernet, IP, TCP, UDP and ICMP).  Capp also cooperates with other threads\nbetter than other pcap wrapper libraries for ruby.\n\nThis product includes software developed by the University of California,\nLawrence Berkeley Laboratory and its contributors.\n\n== Examples\n\nBasic single-thread packet capturing:\n\n  require 'capp'\n\n  Capp.live.loop do |packet|\n    # ...\n  end\n\nBasic multi-thread packet capturing:\n\n  require 'capp'\n  require 'thread'\n\n  q = Queue.new\n\n  Thread.new do\n    while packet = q.deq do\n      # ...\n    end\n  end\n\n  capp = Capp.live.loop do |packet|\n    q.enq packet\n  end\n\n== Requirements\n\n* libpcap, tested with 1.1.1 and 1.3.0\n\n== Install\n\n  sudo gem install capp\n\n== Developers\n\nAfter checking out the source, run:\n\n  $ rake newb\n  $ rake newb\n\nThis task will install any missing dependencies, run the tests/specs,\nand generate the RDoc.  You need to run it twice as the first run installs the\ndependencies needed to compile the C extension.\n\n== License\n\nPortions copyright The Regents of the University of California.  See\nindividual files for details.\n\n(The MIT License)\n\nCopyright (c) Eric Hodel\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbrain%2Fcapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrbrain%2Fcapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbrain%2Fcapp/lists"}