Socket EnableBroadcast MulticastLoopback SocketException 10042

O

oferns

Hi,
apologies for the cluncky title....

Using WinXpSP2 & VS2005 Express editions.....

I am writing an asynchronous socket client and I am getting a
SocketException error on creating the socket:

+ EnableBroadcast 'this.client.EnableBroadcast' threw an exception of
type 'System.Net.Sockets.SocketException' bool
{System.Net.Sockets.SocketException}

+ MulticastLoopback 'this.client.MulticastLoopback' threw an exception
of type 'System.Net.Sockets.SocketException' bool
{System.Net.Sockets.SocketException}


The error is...

- base {"An unknown, invalid, or unsupported option or level was
specified in a getsockopt or setsockopt
call"} System.ComponentModel.Win32Exception
{System.Net.Sockets.SocketException}

ErrorCode 10042 int

This does not raise an exception when I create the socket, nor when I
try to send data through the socket. This appears to work. However,
when I begin the async recieve call, my program hangs waiting for a
recieve callback...I only found this by putting a watch on the socket.
I can raise the error by attempting to call set either property...

Has anyone got any knowledge of what might be happening here? I don't
have the option to try a different machine right now....

I tried turning the firewall etc off...
Thanks,
Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top