摘要:
在具有多个网卡的机器上,如果想要从每个网卡发送UDP数据,一般的做法是:针对每张网卡的每个IP都绑定一个SOCKET,然后发送的时候针对每个SOCKET都发送一次。但是如果你要发送多播数据,在有的系统上(我所测试的Win2K),即使通过每个IP都发送了多播包,但是系统会自动选择一张默认的网卡来发送你的多播包。这是你可以通过设置下面这个Socket选项来更改这种默认行为:unsigned long ...
阅读全文
posted @ 2009-05-20 18:39
njdragonfly
阅读(2914)
推荐(1)
编辑
摘要:
As we know, doing things in signal handlers is really bad, because they run in an interrupt-like context. It's quite possible that variouslocks (including the malloc() heap lock!) are held when the si...
阅读全文
posted @ 2009-05-20 18:38
njdragonfly
阅读(287)
推荐(0)
编辑
posted @ 2009-05-20 18:37
njdragonfly
阅读(1075)
推荐(0)
编辑