A simple packet dumper for old MMOs using Winsock send() and recv()

Results 1 to 5 of 5
  1. #1
    Programmer cyberinferno is offline
    True MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    695Posts

    thumbs up A simple packet dumper for old MMOs using Winsock send() and recv()

    A simple packet dumper for old MMOs using Winsock send() and recv()
    Link: https://github.com/cyberinferno/PacketDumper

    For those who do not want to compile, binary can be downloaded from https://github.com/cyberinferno/PacketDumper/releases
    ** Web developer **


  2. #2
    A simple packet dumper for old MMOs using Winsock send() and recv() Future is offline
    LegendRank
    Dec 2011 Join Date
    2,275Posts

    Re: A simple packet dumper for old MMOs using Winsock send() and recv()

    Looks simple and doing the job!

    Small suggestion, you might want to use a stringstream there rather than your string and all the appends, then flush it before opening the file. Running much more efficient on performance there on the long run. Next level efficiency would be a buffer as you have a fixed size of MAX_PATH on the filename, but prolly overkill for this scenario.


    Quote Originally Posted by A Wise Man
    P-Servers are NOT dead. Bugs need squishing. Quests need fixing. Unfortunately, majority of people don't know the difference between a computer and a toaster so...

  3. #3
    Programmer cyberinferno is offline
    True MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    695Posts

    Re: A simple packet dumper for old MMOs using Winsock send() and recv()

    Quote Originally Posted by Future View Post
    Looks simple and doing the job!

    Small suggestion, you might want to use a stringstream there rather than your string and all the appends, then flush it before opening the file. Running much more efficient on performance there on the long run. Next level efficiency would be a buffer as you have a fixed size of MAX_PATH on the filename, but prolly overkill for this scenario.
    I'll try to improve these in the next release. Thanks for the feedback!
    ** Web developer **

  4. #4

    Re: A simple packet dumper for old MMOs using Winsock send() and recv()

    Simple and clean. The way it should be, thanks and well done!

  5. #5
    Programmer cyberinferno is offline
    True MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    695Posts

    Re: A simple packet dumper for old MMOs using Winsock send() and recv()

    Quote Originally Posted by Hashed View Post
    Simple and clean. The way it should be, thanks and well done!
    Happy to contribute!
    ** Web developer **



Advertisement