Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Reading TCP data.

Options
  • 04-11-2003 10:24pm
    #1
    Closed Accounts Posts: 1,567 ✭✭✭


    Hi.
    Could anyone here please point me in the direction of some
    well commented code on how to read data of a TCP packet.
    Specifically, i'd be interested in learning how to calculate
    the length (or size) of data in a TCP packet, and also where
    it begins inside the TCP_HEADER.

    Please don't reply with "use google" or "read rfc"
    I have tried those areas already so far.
    I'm a little stupid & need some help with this.

    Thanks


Comments

  • Closed Accounts Posts: 7,230 ✭✭✭scojones


    what programming language?


  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    It doesn't really matter.
    Lets say C/C++ or Java.


  • Registered Users Posts: 629 ✭✭✭str8_away


    Try do a search with keyword "white paper" and "TCP"


  • Closed Accounts Posts: 423 ✭✭Dizz


    There's a TCP/IP library here that is documented and is a good learning tool (written in C++) can be used for nefarious uses if u are irresponsibly inclined :mad:

    Dizz


  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    Considering the language you used IrishDizz, I actually thought your information would be of USE.
    Perhaps you were under the nefarious(Typedef) idea it would.


  • Advertisement
  • Closed Accounts Posts: 423 ✭✭Dizz


    Well you wanted to know how to read and calc the size of tcp packets? I think if you look at the CIPCrafter and CTCPCrafter classes you might get some ideas there. There is always /usr/src/linux. Then again if that doesn't help maybe you might want to clarify exactly what you want in more detail.

    As to whether nefarious == Typedef, I have no idea.

    Dizz


Advertisement