in reply to Re: TCP Headers
in thread TCP Headers

What the server guys are saying is that I have to send some data aside from the actual user data. For example, if the user data I want to send is:

1234567890

They want me to send the following non related data in the tcp header:

6001710001

How do I manipulate the TCP header? For that matter, what is a TCP header?

Thanks.

Gorby

Replies are listed 'Best First'.
Re: Re: Re: TCP Headers
by sgifford (Prior) on Mar 23, 2004 at 06:40 UTC
    The part of the TCP header you can set is a series of flags and possibly some key-value pairs that give instructions or information to your system's TCP stack and the TCP stack of the system you're communicating with about any special handling that connection may need. The header also contains sequence numbers and some other stuff, but you generally don't set that.

    It doesn't really make sense to say "put 6001710001 in the TCP header" without saying where you want it put, and even if you did say where it still wouldn't make a ton of sense. It could make sense to say "Set the SYN flag in the TCP header" or "Set the TimeStamp TCP header to X", but that's still a strange thing to do.

    I suspect you're miscommunicating somehow with your server guys. Why don't you see if they can tell you more precisely what they want you to do.

      I think this the equivalent of the new guy on the job (whatever job) being told to go get the 'skyhook".

      --Bob Niederman, http://bob-n.com

      All code given here is UNTESTED unless otherwise stated.