Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Adding header infront of the data

Adding header infront of the data

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 2159113
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • U User 2159113

      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.

      M Offline
      M Offline
      Marvin M
      wrote on last edited by
      #2

      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

      U 1 Reply Last reply
      0
      • M Marvin M

        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

        U Offline
        U Offline
        User 2159113
        wrote on last edited by
        #3

        Yes, what I want is a header on my data due to an application layer protocol.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups