## Express UDP
Express UDP is a high-performance UDP communication software library based on
the xdp socket technology introduced in kernel 4.18.
[Chinese Readme](Readme-cn.md)
## make & install
```
yum install libnl3-devel elfutils-libelf-devel clang llvm libcap-devel
make
```
All output is in the objs directory. At the same time, there are libxudp.a and
libxudp.so files and the header file xudp.h.
## Experience It
tools/xudp\_echo\_server.c is a simple echo service implementation. The compiled
file is under objs, command format:
```
./xudp-echo-server <ip> <port>
```
ip is the local address to be bound, if you use 0.0.0.0, all network cards will
be monitored. The details will be introduced later. After startup, you can use
the following command to test:
```
nc -u <ip> <port>
```
Send udp message to the server, the server will print the message and echo to
the client.
## ARP
There is currently a rudimentary ARP implementation. Since Alibaba Cloud has ARP
Proxy support, opening the libxudp noarp option can work in Alibaba Cloud
without the related overhead of arp.
It is currently recommended to turn on the noarp option on Alibaba Cloud.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
1. 网络编程要素: 如何定位到网络上的一台或多台主机 IP地址和端口号 找到后如何通信 TCP/UDP JAVA,万物皆对象,去找相应的类 2. IP地址 ip地址的包: InetAddress 唯一定位一台网络上的计算机 本机localhost地址: 127.0.0.1 ip地址分类: IPV4/IPV6 IPV4 IPV6 公网-私网 ABCD类地址 192.168.xxx.xxx, 给组织内部使用 3. InetAddress包 没有构造函数,只能通过静态方法返回对象 直接查看java文档,获取本机地址/域名地址等, 得到的返回值为一个对象,获取他们的信息
资源推荐
资源详情
资源评论
收起资源包目录
Express UDP 是基于 XDP Socket 实现的 UDP 通信软件库.rar (89个子文件)
Express UDP 是基于 XDP Socket 实现的 UDP 通信软件库
新建文本文档.txt 19B
libxudp-master
include
dump.h 1KB
group_api.h 2KB
list.h 3KB
queue.h 4KB
channel.h 2KB
packet_parse.h 3KB
ip6.h 2KB
config.h 701B
common.h 2KB
xudp.h 10KB
group
xudp_dump.c 7KB
group.c 7KB
group.h 2KB
channel.c 6KB
dump.c 2KB
tools
xudp_echo_server.c 3KB
Makefile 546B
xudp-stats 12KB
xudpperf.c 16KB
kern
dispatch_hash.c 2KB
Makefile 1KB
kern_core.c 7KB
bpf_helper_defs.h 119KB
kern.h 3KB
dispatch_rr.c 1KB
bpf_endian.h 7KB
dispatch_dict.c 2KB
Makefile 4KB
LICENSE 9KB
xudp
xudp_types.h 3KB
group_api.c 2KB
kern_ops.h 739B
route6.c 6KB
neigh.c 3KB
neigh.h 755B
xudp_route.c 1KB
xsk.c 16KB
route6.h 1KB
types.h 1KB
ping.c 2KB
xudp.c 7KB
bind.c 18KB
tx.c 15KB
xudp_route6.c 1015B
checksum.h 4KB
xudp_map.c 5KB
route.c 6KB
packet.h 1KB
route.h 1KB
packet.c 5KB
xsk.h 813B
kern_ops.c 2KB
Readme-cn.md 3KB
common
log.h 1KB
ifapi.c 20KB
ifapi.h 3KB
log.c 2KB
test
route6.sh 233B
Makefile 623B
auto
test_00_zerocopy.py 1KB
test_10_fork.py 2KB
test_03_dict.py 962B
test_04_setuid_cap.py 2KB
test_01_echo.py 937B
xudp.py 4KB
test_02_rr.py 871B
conftest.py 2KB
case
test_fork.c 2KB
test_group.c 2KB
test_reload.c 2KB
test_rr.c 1KB
test_dict_map_auto_release.c 3KB
test_echo.c 1006B
test_clear_xdp.c 629B
test_setuid_cap.c 1KB
lib.c 6KB
test_dict.c 1KB
test_check_umem.c 2KB
test_log_debug.c 1KB
lib.h 2KB
netns.sh 497B
route6.py 7KB
Readme.md 287B
.gitignore 28B
bpf
bpf_helpers.h 890B
bpf.c 11KB
bpf.h 5KB
Readme.md 1KB
共 89 条
- 1
资源评论
野生的狒狒
- 粉丝: 1519
- 资源: 1582
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功