相关疑难解决方法(0)

Linux上的SO_REUSEPORT

我想知道是否在LINUX 2.6中启用了SO_REUSEPORT选项?

如果我尝试使用它并编译我的代码,我会得到以下错误

01.c:72: error: `SO_REUSEPORT' undeclared (first use in this function)
01.c:72: error: (Each undeclared identifier is reported only once
01.c:72: error: for each function it appears in.)
Run Code Online (Sandbox Code Playgroud)

使用上面的选项,我想我可以将两个不同的套接字绑定到相同的IPADRESS和PORT NUMBER

sockets linux udp

15
推荐指数
2
解决办法
2万
查看次数

标签 统计

linux ×1

sockets ×1

udp ×1