Re: Exception setting SocketOption
From: Milosz - [playseven.com] (mw_at_playseven.com)
Date: 02/29/04
- Next message: Marauderz: "Re: How To P/Invoke SHChangeNotifyRegister?"
- Previous message: Milosz - [playseven.com]: "Re: Exception setting SocketOption"
- In reply to: Alex Feinman [MVP]: "Re: Exception setting SocketOption"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 29 Feb 2004 08:24:41 +0100
ups, I crosspost again ... sorry sorry sorry sorry sorry sorry :-/
"Alex Feinman [MVP]" <public_news@alexfeinman.com> schrieb im Newsbeitrag
news:Ow6f7Hp$DHA.2180@TK2MSFTNGP09.phx.gbl...
> 1) Do not crosspost.
> 2) According to Windows CE.NET OS documentation the platform itself does
not
> support SO_RCVTIMEO and SO_SNDTIMEO
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcewinsk/html/_wcesdk_setsockopt.asp
> The actual enumerated values are included for code-level compatibility
>
> "Milosz - [playseven.com]" <mw@playseven.com> wrote in message
> news:eWxJQDo$DHA.1844@TK2MSFTNGP11.phx.gbl...
> > Dim EP As System.Net.IPEndPoint = New System.Net.IPEndPoint(mIP, mPort)
> >
> >
> > Dim S As Socket = New Socket(EP.AddressFamily, SocketType.Dgram,
> > ProtocolType.Udp)
> >
> > S.SetSocketOption(Sockets.SocketOptionLevel.Socket,
> > Sockets.SocketOptionName.SendTimeout, Me.mTimeOUT)
> >
> > ......
> >
> > it crashes with Exception:
> >
> > "An unknown, invalid, or unsupported option or level was specified in a
> > getsockopt or setsockopt call"
> >
> > it seems it does not matter what value is me.mTimeout. i tried 100 and
> 1000.
> > I tried also ReceiveTimeOut and with a TCP Socket but it always crashes.
> >
> > the method is running in an own thread
> >
> > Somebody knows help ?
> >
> > THX Milosz
> >
> >
> >
> > --
> > -> Milosz Weckowski
> > www.playseven.com
> >
> > mailto:mw@playseven.com
> > ICQ Number: 84867613
> >
> > Get the enhanced Progressbar and a fine Colorpicker for the Compact
> Framwork
> > for free:
> > http://www.playseven.com/11620/p7_Controls.html
> >
> >
>
>
- Next message: Marauderz: "Re: How To P/Invoke SHChangeNotifyRegister?"
- Previous message: Milosz - [playseven.com]: "Re: Exception setting SocketOption"
- In reply to: Alex Feinman [MVP]: "Re: Exception setting SocketOption"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|