|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Equivalent of SIO_UDP_CONNRESET in .NETHello all.
Is there an equivalent to setting socket option SIO_UDP_CONNRESET to FALSE (ignore ICMP "port unreachable" messages when sending an UDP datagram) in .NET socket class? Thanks. Arnaud did not try it, but it should work
const long IOC_IN = 0x80000000; const long IOC_VENDOR = 0x18000000; const long SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12; byte[] optionInValue = { Convert.ToByte(true) }; byte[] optionOutValue; Socket.IOControl(SIO_UDP_CONNRESET, optionInValue, optionOutValue); Show quoteHide quote "Arnaud Debaene" <adeba***@club-internet.fr> schrieb im Newsbeitrag news:16a4a8c7.0501050230.30a0d15d@posting.google.com... > Hello all. > > Is there an equivalent to setting socket option SIO_UDP_CONNRESET to > FALSE (ignore ICMP "port unreachable" messages when sending an UDP > datagram) in .NET socket class? > > Thanks. > > Arnaud
general question regarding when to abstract vs. interface
Proper place for custom CONFIG file Quick Questions on threading Exporting registry key to a reg file? String conversion from an Object in VB.NET Unable to start debugging on the web server Framework 1.0 application looking for 1.1 dll Automatic startup of service Enum conversion from an Object in VB.NET Error 1937 on VS installation |
|||||||||||||||||||||||