Re: Exception setting SocketOption

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Milosz - [playseven.com] (mw_at_playseven.com)
Date: 02/29/04


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
> >
> >
>
>



Relevant Pages

  • Re: MAKEDEV /dev/hda35 = cant do ?
    ... I don't really understand your question, but if you want documentation ... on device file numbers, read ... And if you crosspost to several groups, please set a Followup-To to one ... Registered Linux User #267976 ...
    (comp.os.linux.misc)
  • Re: Hats off to long-time Mac OS developers...
    ... documentation for Windows and the API itself diverged so often that ... Really, for any given platform, the worst experiences I had came from ... Apple, in 1989, decided to treat its developers as a revenue source. ... Drove large numbers of developers away just as Windows was becoming a ...
    (comp.sys.mac.programmer.misc)
  • Re: errors not stopping
    ... Crosspost, do not multipost http://www.blakjak.demon.co.uk/mul_crss.htm ... i the is someday comes a windows no errors in the store i buy them. ... Open Control Panel>Administrative Tools>Event Viewer>Application. ...
    (microsoft.public.windows.mediacenter)
  • Re: Problems with startup
    ... Crosspost, do not multipost http://www.blakjak.demon.co.uk/mul_crss.htm ... only change it from within Windows, ... Safe mode with command prompt ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: errors not stopping
    ... "David B." ... Crosspost, do not multipost http://www.blakjak.demon.co.uk/mul_crss.htm ... i the is someday comes a windows no errors in the store i buy them. ...
    (microsoft.public.windows.mediacenter)