473,509 Members | 3,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sockets Question: What's the use of SocketFlags enum?

Just a basic question after I didn't see any examples on the web other
than the "None" enum.

Is this just a way of sending "hints" to server/client, or is there
another more valuable use to this?

I'm speaking of the following:
socket.BeginReceive(data, 0, 255, SocketFlags.None, new
AsyncCallback(ReceiveCallback), data);

Thanks for the help!

Feb 13 '06 #1
3 3482
Hi,

"Arronax" <jc*****@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Just a basic question after I didn't see any examples on the web other
than the "None" enum.

Is this just a way of sending "hints" to server/client, or is there
another more valuable use to this?

I'm speaking of the following:
socket.BeginReceive(data, 0, 255, SocketFlags.None, new
AsyncCallback(ReceiveCallback), data);

Neither I have, IMO they are not widely used in a regular environment.

If you are curious about it, take a look at its equivalent in the unmanaged
world ( in the API especially ) and google it
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 13 '06 #2
Hello, Arronax!

A> Is this just a way of sending "hints" to server/client, or is there
A> another more valuable use to this?

A> I'm speaking of the following:
A> socket.BeginReceive(data, 0, 255, SocketFlags.None, new
A> AsyncCallback(ReceiveCallback), data);

These flags give 'hints' to TCP/IP protocol stack how to process & send your data. While setting specific SocketFlag,
specific header flags in the IP, TCP or UDP packets will be set.

You can see more details in appropriate protocol RFCs

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Feb 13 '06 #3
Thanks guys, I'll take a look at those resources!

Feb 14 '06 #4

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

Similar topics

0
1255
by: raza | last post by:
Hi, I have been programmin in C# for quite some time now and recently got into sockets programming in C# though i have done it in C++ on windows/linux . I have an interesting problem at hand . ...
1
1757
by: Michael Evanchik | last post by:
im trying to do a get on a http server and keep appending the return data to a string and then i even tried an array of strings. But very odd things are happening. I am completely missing the...
1
1589
by: Hasan O | last post by:
hi , I have a problem with socket.send mesajlar = Encoding.ASCII.GetBytes("UGIR"); socketResultValue = socket.Send(mesajlar,0,mesajlar.Length, SocketFlags.None); socketResultValue =...
2
3248
by: Buc | last post by:
I have a small program that accepts a DGRAM UDP text packet (+-250 bytes port 9001) and puts it in a list box. The network receive part acts BUGGY. It acts the same way on more than one machine. It...
0
1399
by: mottebelke | last post by:
I want to print a bitmap directly to a network printer using a socket. To do this I use PCL codes to set the printer in the right mode and print the image. Note that this code is used on the...
3
11567
by: J C | last post by:
Hi, I'm using UDPClient to make a simple DNS server. I notice that intermittently and unpredictibly I get: Unhandled Exception: System.Net.Sockets.SocketException: An existing connection...
3
11022
by: shahla.saeed | last post by:
hi, plzz check my code and let me know where the problem is lying...becuase whenever i try to tansfer the file of 573KB(mp3) it just tranfer few Kb of file(Somtimes 5.2Kb,somtimes 32Kb..every time...
1
4437
by: larspeter | last post by:
Hi all. I have a problem with TcpClient ... I am conneting to a server with TcpClient and returning the answer through a webservice. It actully all works fine. BUT if I make a lot of...
0
7344
Oralloy
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,...
0
7412
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...
1
7069
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
7505
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...
1
5060
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...
0
4730
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
1570
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
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
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.