Adding header infront of the data
-
How to write the program that when I type a data and send it through TCP/IP, it will add my own header infront of the data. I really need some help.
-
How to write the program that when I type a data and send it through TCP/IP, it will add my own header infront of the data. I really need some help.
i'm a little confused by the question. Are you wanting to modify the standard TCP/IP header due to some special network protocol. That would require modification of the network layer of the stack. If all you want is a header on your data due to an application layer protocol, that's easy. Just write a function to add you data to the end of a buffer which already contains the header you want. Hope that explains it. - Marvin
-
i'm a little confused by the question. Are you wanting to modify the standard TCP/IP header due to some special network protocol. That would require modification of the network layer of the stack. If all you want is a header on your data due to an application layer protocol, that's easy. Just write a function to add you data to the end of a buffer which already contains the header you want. Hope that explains it. - Marvin
Yes, what I want is a header on my data due to an application layer protocol.