Results 1 to 4 of 4

Thread: What is the IRC PONG command

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    Belfast
    Posts
    109

    What is the IRC PONG command

    Hi, I've made an irc program but I keep getting ping timeouts. I know that when the server sends ping message you should send a pong message to show that you are sill there. What is the exeact commad for thr pong message. I have it as winsock1.senddata("PONG" & ServerName) but I dont think its right. Can someone give me an example of the exact information need to be sent for the PONG command to work? Thanks

  2. #2
    Addicted Member tonyenkiducx's Avatar
    Join Date
    Oct 2000
    Location
    London England
    Posts
    147
    http://bahamut.dal.net/documentation/
    Thats the dalnet ircD's documentation, should tell you everything you need to know..

    Tony.

  3. #3
    Addicted Member tonyenkiducx's Avatar
    Join Date
    Oct 2000
    Location
    London England
    Posts
    147
    Ooops, it is worth mentioning, not all networks use the same ircD

  4. #4
    Hyperactive Member Hampster's Avatar
    Join Date
    Feb 2001
    Location
    On my hamster wheel.
    Posts
    374
    Well... There's two types of "pongs" (excluding ctcp, but that's not pong, that's ping).
    pong is the reply of a ping request

    1)
    Client's connecting.

    Server sends a ping with a random string:

    PING :6F3A0B0B

    and Client replies:

    PONG :6F3A0B0B

    2)
    Client's been connected for a while
    Server wants to see if it's still alive

    Server Sends:

    PING :irc.FatPeople.net

    When Client gets this "PING" then it'll send a PONG:

    PONG :irc.FatPeople.net

    If the server doesn't get a PONG in a certain amount of time then it'll "Ping timeout" the client.

    As for your question steekyjim:

    Try:
    VB Code:
    1. WinSock1.sendData("PONG :" & ServerName)
    the server might not like the lack of the :

    Ooops, it is worth mentioning, not all networks use the same ircD
    Correct, but there are some "constant" commands (such as PING/PONG) that are normally the same for any IRCd, if this was not so then the user'd have to get a new irc client for that server,
    most people would not bother and no one would "join" the server.

Posting Permissions

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



Click Here to Expand Forum to Full Width