Is setsockopt w/ SO_REUSEADDR supported by Pocket PC?

  • Thread starter Thread starter Jeremy
  • Start date Start date
J

Jeremy

In my .NET CF app I'm trying to PInvoke a call to 'setsockopt' with
the SO_RESUSEADDR option set to true. (A MS FAQ indicates that this is
a work around for the exceptions thown by the .NET equivalent,
SetSocketOption w/ ReuseAddress option).

Unfortunatly, I always get a WSAENOTSOCK (10038) error. My socket is
a valid .NET Socket, though.

Is 'setsockopt' w/ SO_REUSEADDR even supported by the Pocket PC
platform?

If so, has anyone successfully set the ReuseAddress option with a
PInvoke from .NET CF?

Thanks.

Please send replies to: jeremy AT imtc DOT gatech DOT edu.
 
To call setsockopt(), you have to pass a valid socket number that WinSock
will understand. What is it that you are actually passing? That error
indicates that WinSock does not believe that the number you sent is a
socket.

Paul T.
 
Back
Top