Jack wrote: > Resending ... anyone has any idea why this is happening? These components use ICS: http://www.magsys.co.uk/delphi/magmonsock.asp
"Raw sockets which are available with Windows 2000 and later. This uses WSocket from the François Piette internet component suite, from http://www.overbyte.be/. Major benefit is that no other software needs to be installed, but raw sockets don't seem to work fully with some network adaptors, and ignore non-IP protocols. Some adaptors may capture received packets, but ignore anything sent." --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > ===8<==============Original message text=============== > Hello Francois, > > I used the code you posted earlier to capture traffic with raw > sockets. It's the UDP packets I'm interested. It all works fine > with packets specifically addressed to this IP. However, all > broadcast packets are not captured, such as 192.168.1.255. > I tried a C++ library based on raw socket and it worked. I briefly > looked at the C++ code and didn't find anything obvious. Can you think > of any reason that the ICS raw sockets is not doing that? > > WSocket1.ReqVerHigh := 2; > WSocket1.ReqVerLow := 2; > WSocket1.Proto := 'raw_ip'; > WSocket1.Port := '0'; > WSocket1.ComponentOptions := [wsoSIO_RCVALL]; > WSocket1.Addr := '192.168.1.102'; > WSocket1.Listen; > > -- > Best regards, > Jack > ===8<===========End of original message text=========== -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be