473,508 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Associating SocketOptionLevel with SocketOptionName?

The C# doc lists all the available SocketOptionName enumerators
(on the SocketOptionName help page), but there doesn't appear
to be a list of which option goes with what socket option level.
It would be nice to have such a list. (Without it, I have to
keep switching back to the Win32 API doc, which provides such
a list.)

From the code example on the SocketOptionLevel help page, I can see
that SocketOptionName.SendTimeout goes with SocketOptionLevel.Socket.

But the caption for the code example suggests that SendTimeout goes
with SocketOptionLevel.Tcp:

"The following example uses the Tcp enumerated value to specify that
SetSocketOption must select a SocketOptionName which pertains to Tcp
sockets only."

Looks like that sentence should be changed to talk about the Socket
level, not the Tcp level?

Also, it would be really nice to add the type of each option (bool,
int, or whatever) to the table, as well as the units (as was done
on the Win32 setsockopt() help page). For example, for SendTimeout
and ReceiveTimeout, no units are mentioned. (These options require
milliseconds, whereas Select() and Poll() require microseconds, so
it would be nice to state that explicity.)

Cheers,

Michi.

Nov 15 '05 #1
0 1268

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

Similar topics

0
1858
by: vpcs | last post by:
I am trying to do an invoicing software with perl - cgi. I am having a problem in associating the checkbox with the items from the database. I am giving the user option to enter the customer...
2
3439
by: Dave Smithz | last post by:
Hello, Is there a way of associating what colour the hyperlinks should be within a particular class? Let me elaborate: I am using programming to generate HTML code. I want different...
0
1308
by: Ivar | last post by:
Hi, Is SocketOptionName.ReciveTimeout usable with asyncronous socket methods ? With Recive method it works but BeginRecive can't get it working.
0
1132
by: Michi Henning | last post by:
The help page for SocketOptionName says, toward the end: "Example The following example uses the Linger enumerated value to set the linger time of the Socket." However, the example does not...
0
1082
by: zerodot | last post by:
string keyName; string keyValue; keyName = "MyApp"; keyValue = "My App"; RegistryKey key,subkey; key = Registry.ClassesRoot.CreateSubKey(keyName); key.SetValue("",keyValue); subkey =...
0
1342
by: carl.manaster | last post by:
Hi, In <http://groups-beta.google.com/group/microsoft.public.dotnet.languages.csharp/msg/05abaf8460c61859>, back in 2003, "SleazySt" wrote that > Unfortunately, C# projects can't have...
1
1324
by: Novice | last post by:
Hey all, I realize this must be a fairly common requirement in ASP.NET but I have yet to come across the right way to do it. Basically, right now I have a single asp:label on my webpage and I am...
3
15509
by: Ryan Liu | last post by:
Hi, I use Server: Use an endless thread to lisiten to clients requests: while(true) { TcpClient client = myListener.AcceptTcpClient();
1
1715
by: asger_gronnow | last post by:
Hi I'm having trouble associating file types with my app. Associating a file type works as long as the file type is already associated with another program but if the file type doesn't exist...
0
7223
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
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7377
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
7488
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
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.