微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

rinetdplus Linux 端口映射工具

程序名称:rinetdplus

授权协议: GPL

操作系统: Linux

开发语言: C/C++

rinetdplus 介绍

介绍 rinetdplus 之前,先介绍 rinetd。rinetd 是 Linux
下的端口映射工具,实现端口映射/转发/重定向。简单好用。

“Redirects TCP connections from one IP address and port to another. rinetd is
a single-process server which handles any number of connections to the
address/port pairs specified in the file /etc/rinetd.conf. Since rinetd runs
as a single process using nonblocking I/O, it is able to redirect a large
number of connections without a severe impact on the machine. This makes it
practical to run TCP services on machines inside an IP masquerading firewall”.

rinetd 是用 select 来实现 多路I/O机制。

rinetdplus 所要做的,是在 rinetd 基础上,用 epoll 来替代 select。它使用的是 redis 封装的 一个简单库 ae。

附:README.md

rinetdplus

rinetd + ae from redis

1 what is rinetd? see http://www.boutell.com/rinetd/

2 ae is “A simple event-driven programming library” from redis

3 what rinetdplus do ?
rinetd use function “select”, rinetdplus replace it with “epoll” (ae).Just it.

rinetdplus 官网

https://github.com/rogerwangzy/rinetdplus/tree/master

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐