CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    6

    Ping dll for game

    I'm trying to create a dll for another application that I didn't build that only accepts unmanaged C/C++ dlls. This is for hooking into a game and pinging clients that connect to the game (the application I didn't build). I've been looking at tons and tons of stuff on google, but I can't find anything that seems to be the holy grail.

    What I'm chiefly concerned about is this:

    Do I use ICMP or TCP for this? Is it possible to spam a client with ping requests and therefore be seen as a threat, or to accidentally do denial of service sort of attack on clients using ICMP?

    Any help would be appreciated. (I'm still looking at how to design the program at the moment, and looking for any roadblocks or obstacles)

    P.S. I posted this in Yahoo answers, but it doesn't look like I'll be getting any answers there (which doesn't surprise me), so I thought I'd try here. (Oh, and I added a few details for this post)

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,533

    Re: Ping dll for game

    Ping naturally implies ICMP protocol which may be just disabled/prohibited on client's side.

    So this is the game framework who must take care about exchanging certain watchdog packets to see if the client is still alive.
    Last edited by Igor Vartanov; April 7th, 2010 at 04:50 AM.
    Best regards,
    Igor

  3. #3
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    3,110

    Re: Ping dll for game

    If you have an actual connection between 2 machines, you can piggyback latency calculations on top of your normal traffic. rather than use an actual ping system.

  4. #4
    Join Date
    Oct 2008
    Posts
    6

    Re: Ping dll for game

    Thanks for the responses. Piggybacking off the normal traffic seems to make since. I wondered if ICMP would really be used in such a situation, but now that doesn't seem likely.

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+)
    Join Date
    Aug 2004
    Posts
    10,339

    Re: Ping dll for game

    Why not contact the game manufacturer and ask if there is any extensibility provisions (i.e. SDK) for the game?

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts



HTML5 Development Center

Click Here to Expand Forum to Full Width