471,618 Members | 1,244 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 3380
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by raza | last post: by
1 post views Thread by Michael Evanchik | last post: by
1 post views Thread by Hasan O | last post: by
2 posts views Thread by Buc | last post: by
reply views Thread by mottebelke | last post: by
1 post views Thread by larspeter | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

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.