{"id":13804193,"url":"https://github.com/huntlabs/hunt-net","last_synced_at":"2026-02-18T13:02:01.076Z","repository":{"id":96141928,"uuid":"137469996","full_name":"huntlabs/hunt-net","owner":"huntlabs","description":"High-performance network library for D programming language, event-driven asynchonous implemention(IOCP / kqueue / epoll).","archived":false,"fork":false,"pushed_at":"2022-02-21T06:18:34.000Z","size":1062,"stargazers_count":20,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-31T01:34:18.387Z","etag":null,"topics":["codec","socket","ssl","tcp","tls","udp"],"latest_commit_sha":null,"homepage":"","language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huntlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-06-15T09:41:49.000Z","updated_at":"2024-10-04T05:13:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2ceeeb1-aa35-4f75-a3d0-d7e922066b7b","html_url":"https://github.com/huntlabs/hunt-net","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/huntlabs/hunt-net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntlabs%2Fhunt-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntlabs%2Fhunt-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntlabs%2Fhunt-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntlabs%2Fhunt-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huntlabs","download_url":"https://codeload.github.com/huntlabs/hunt-net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntlabs%2Fhunt-net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018768,"owners_count":26086449,"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-10-14T02:00:06.444Z","response_time":60,"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":["codec","socket","ssl","tcp","tls","udp"],"created_at":"2024-08-04T01:00:43.500Z","updated_at":"2025-10-14T10:09:04.564Z","avatar_url":"https://github.com/huntlabs.png","language":"D","funding_links":[],"categories":["Web Frameworks"],"sub_categories":["Bare metal / kernel development"],"readme":"[![Build Status](https://travis-ci.com/huntlabs/hunt-net.svg?branch=master)](https://travis-ci.com/huntlabs/hunt-net)\n\n# hunt-net\nA net library for DLang, hunt library based. hunt-net have codec to encoding and decoding tcp streaming frames.\n\n### Using codec to build a TcpServer\n```D\nimport hunt.net;\nimport hunt.net.codec.textline;\n\nimport hunt.logging;\n\nvoid main()\n{\n    NetServerOptions options = new NetServerOptions();\n    NetServer server = NetUtil.createNetServer!(ThreadMode.Single)(options);\n\n    server.setCodec(new TextLineCodec);\n    server.setHandler(new class AbstractNetConnectionHandler\n    {\n        override void messageReceived(Connection connection, Object message)\n        {\n            import std.format;\n\n            string str = format(\"data received: %s\", message.toString());\n            connection.write(str);\n        }\n    }).listen(\"0.0.0.0\", 9999);\n}\n```\n\n### Using codec to build a TcpClient\n```D\nimport hunt.net;\nimport hunt.net.codec.textline;\n\nimport hunt.logging;\n\nvoid main()\n{\n    NetClient client = NetUtil.createNetClient();\n\n    client.setCodec(new TextLineCodec);\n    client.setHandler(new class AbstractNetConnectionHandler\n    {\n        override void messageReceived(Connection connection, Object message)\n        {\n            import std.format;\n            import hunt.String;\n\n            string str = format(\"data received: %s\", message.toString());\n            \n            connection.write(new String(str));\n        }\n    }).connect(\"localhost\", 9999);\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuntlabs%2Fhunt-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuntlabs%2Fhunt-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuntlabs%2Fhunt-net/lists"}