Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Reading TCP data.

  • 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, Registered Users 2 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