473,324 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Exception setting SocketOption

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
Nov 20 '05 #1
2 1089
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/de...setsockopt.asp
The actual enumerated values are included for code-level compatibility

"Milosz - [playseven.com]" <mw@playseven.com> wrote in message
news:eW**************@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

Nov 20 '05 #2
thx alex and sorry for the crosspost, no answer was coming in the other
thread..

Does anybody knows a workaround for the timeout problem ?

regards Milosz

"Alex Feinman [MVP]" <pu*********@alexfeinman.com> schrieb im Newsbeitrag
news:Ow**************@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/de...setsockopt.asp The actual enumerated values are included for code-level compatibility

"Milosz - [playseven.com]" <mw@playseven.com> wrote in message
news:eW**************@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


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Milosz - [playseven.com] | last post by:
Dim EP As System.Net.IPEndPoint = New System.Net.IPEndPoint(mIP, mPort) Dim S As Socket = New Socket(EP.AddressFamily, SocketType.Dgram, ProtocolType.Udp) ...
15
by: David | last post by:
Hi, I have built a web application that will be a very high profile application. We had tested it, demonstrated it and shown that it all works. On a dress rehearsal run through, it failed...
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
1
by: Jim Heavey | last post by:
Hello, I was setting the primary key on a table which was a collection of 3 columns. I mispelled the name of the second column when I built the array of collumns when I created the array of...
8
by: scorpion53061 | last post by:
Additional information: Exception from HRESULT: 0x800A03EC. This code produced this error. I am pretty sure I got this to run a while back and I was wondering if you all see anything I am doing...
4
by: Frank | last post by:
Hi, I made a handler for unhandled errors. But before that is executed, VB.NET gives me the standard error window. In VB6 there was a setting (errortrapping) about handling errors in the design...
5
by: Joris Zwaenepoel | last post by:
Hi all, I don't think a solution exists, but maybe there is some option in Visual Studio that I do not know about. When developping (or debugging), I like to set the "exceptions" option to...
2
by: akameswaran | last post by:
Admittedly this problem causes no actual functional issues aside from an occasional error message when the program exits. The error is: Unhandled exception in thread started by Error in...
3
by: matko | last post by:
This is a long one, so I'll summarize: 1. What are your opinions on raising an exception within the constructor of a (custom) exception? 2. How do -you- validate arguments in your own...
6
by: Kristijan Marin | last post by:
Hi, Can please anyone tell me why do i get only the first method in which the exception was thrown and not the line that triggered the exception ? I don't know if I set something in VS2005 wrong...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.