百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

NtyTcp

> 包管理
开源

单线程用户态 TCP/IP 协议栈,基于 epoll 实现,包含服务器案例和并发测试案例

748 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

单线程用户态 TCP/IP 协议栈,基于 epoll 实现,包含服务器案例和并发测试案例

netmap install

$ git clone https://github.com/wangbojing/netmap.git

$ ./configure

$ make 

$ sudo make install

netmap install complete.

Troubleshooting

1. problem : configure --> /bin/sh^M.

you should run . 
$ dos2unix configure

$ dos2unix ./LINUX/configure

2. problem : cannot stat 'bridge': No such or directory

$ make clean

$ cd build-apps/bridge

$ gcc -O2 -pipe -Werror -Wall -Wunused-function -I ../../sys -I ../../apps/include -Wextra    ../../apps/bridge/bridge.c  -lpthread -lrt    -o bridge

$ sudo make && make install

NtyTcp

netmap, dpdk, pf_ring, Tcp Stack for Userspace

compile:

$ sudo apt-get install libhugetlbfs-dev

$ make

update NtyTcp/include/nty_config.h


#define NTY_SELF_IP		"192.168.0.106" 	//your ip

#define NTY_SELF_IP_HEX	0x6A00A8C0 			//your ip hex.

#define NTY_SELF_MAC	"00:0c:29:58:6f:f4" //your mac

block server run:

$ ./bin/nty_example_block_server

epoll server run:

$ ./bin/nty_example_epoll_rb_server

Reference

  • Level-IP and saminiir blog
  • Linux kernel TCP/IP stack

if you discover bug to sending email to [email protected].

also, want to be an NtyTcper, so you can sent email to [email protected] .

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Cdpdkepollip-hexnetmap

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类包管理
定价开源

> 相关工具

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image