473,401 Members | 2,125 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,401 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 22 '05 #1
2 5037
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 22 '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 22 '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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.