The C# doc lists all the available SocketOptionNam e enumerators
(on the SocketOptionNam e 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 SocketOptionLev el help page, I can see
that SocketOptionNam e.SendTimeout goes with SocketOptionLev el.Socket.
But the caption for the code example suggests that SendTimeout goes
with SocketOptionLev el.Tcp:
"The following example uses the Tcp enumerated value to specify that
SetSocketOption must select a SocketOptionNam e 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. 0 1277 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 name. The invoices
pertaining to the customers is displayed with the check box. Once the
user checks the particular check box the status of the particular
check box ie. the particular invoice field should be updated to PAID.
I got stuck up in...
|
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 sections of
the webpage to be coloured differently depending on variables in my code and
I use CSS classes to achieve this.
|
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.
|
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 show that. Instead it shows how to use Poll().
The example is also questionable because, if the socket is in the error state
when the first call to Poll() to check for write status is made, that call
will block indefinitely so, even if the socket...
|
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 = key.CreateSubKey("shell");
| |
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 resource scripts.
> Resources added to .NET applications by adding them to
> the project and designating them an "Embedded Resource"
> are included in a new .NET-specific format that's not
|
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
writing out to the Text property of that Label object.
However, now I would like to write a control like a button to that Text and
associate an event handler with that button.
How should I do that - or am I going about this in the wrong way -...
|
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();
|
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 already, it isn't
associated. So my question is: how do I associate a file type that
isn't registered already? How can I register this new file type if
that's what I'll have to do before associating it.
I'm programming in Win32 using the Dev-Cpp...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |