{"id":32214273,"url":"https://github.com/ltriant/sys-sendfile-osx","last_synced_at":"2025-10-22T07:07:18.664Z","repository":{"id":56830291,"uuid":"86457152","full_name":"ltriant/Sys-Sendfile-OSX","owner":"ltriant","description":"Exposing sendfile() for OS X","archived":true,"fork":false,"pushed_at":"2019-07-19T01:17:38.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T14:27:54.830Z","etag":null,"topics":["macosx","sendfile","syscall"],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/ltriant.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":"2017-03-28T12:27:18.000Z","updated_at":"2023-04-27T08:48:48.000Z","dependencies_parsed_at":"2022-09-02T05:50:47.313Z","dependency_job_id":null,"html_url":"https://github.com/ltriant/Sys-Sendfile-OSX","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ltriant/Sys-Sendfile-OSX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltriant%2FSys-Sendfile-OSX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltriant%2FSys-Sendfile-OSX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltriant%2FSys-Sendfile-OSX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltriant%2FSys-Sendfile-OSX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ltriant","download_url":"https://codeload.github.com/ltriant/Sys-Sendfile-OSX/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltriant%2FSys-Sendfile-OSX/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280395670,"owners_count":26323547,"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-22T02:00:06.515Z","response_time":63,"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":["macosx","sendfile","syscall"],"created_at":"2025-10-22T07:02:06.310Z","updated_at":"2025-10-22T07:07:18.657Z","avatar_url":"https://github.com/ltriant.png","language":"Perl","readme":"# NAME\n\nSys::Sendfile::OSX - Exposing sendfile() for OS X\n\n# SYNOPSIS\n\n    use Sys::Sendfile::OSX qw(sendfile);\n\n    open my $local_fh, '\u003c', 'somefile';\n    my $socket_fh = IO::Socket::INET-\u003enew(\n      PeerHost =\u003e \"10.0.0.1\",\n      PeerPort =\u003e \"8080\"\n    );\n\n    my $rv = sendfile($local_fh, $socket_fh);\n\n# DESCRIPTION\n\nThe sendfile() function is a zero-copy function for transferring the\ncontents of a filehandle to a streaming socket.\n\nAs per the man pages, the sendfile() function was made available as of Mac\nOS X 10.5.\n\n# Sys::Sendfile\n\nWhy would you use this module over [Sys::Sendfile](https://metacpan.org/pod/Sys::Sendfile)? The answer is: you\nprobably wouldn't. [Sys::Sendfile](https://metacpan.org/pod/Sys::Sendfile) is more portable, and supports more\nplatforms.\n\nUse [Sys::Sendfile](https://metacpan.org/pod/Sys::Sendfile).\n\n# EXPORTED FUNCTIONS\n\n- sendfile($from, $to\\[, $count\\]\\[, $offset\\])\n\n    Pipes the contents of the filehandle `$from` into the socket stream `$to`.\n\n    Optionally, only `$count` bytes will be sent across to the socket. Specifying a\n    `$count` of 0 is the same as sending the entire file, as per the man page.\n\n    Also optionally, `$offset` can be specified to set a specific-sized chunk from\n    a specific offset.\n\n# AUTHOR\n\nLuke Triantafyllidis \u003cltriant@cpan.org\u003e\n\n# SEE ALSO\n\n[Sys::Sendfile](https://metacpan.org/pod/Sys::Sendfile), sendfile(2)\n\n# LICENSE\n\nThis library is free software; you can redistribute it and/or modify it\nunder the same terms as Perl itself.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltriant%2Fsys-sendfile-osx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fltriant%2Fsys-sendfile-osx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltriant%2Fsys-sendfile-osx/lists"}