我想知道 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.)
我想使用上述选项可以将两个不同的套接字绑定到相同的IP地址和端口号。