|
-
Sep 5th, 2001, 03:17 AM
#1
Thread Starter
Lively Member
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
-
Sep 5th, 2001, 04:09 AM
#2
Addicted Member
http://bahamut.dal.net/documentation/
Thats the dalnet ircD's documentation, should tell you everything you need to know..
Tony.
-
Sep 5th, 2001, 04:10 AM
#3
Addicted Member
Ooops, it is worth mentioning, not all networks use the same ircD
-
Nov 12th, 2001, 02:34 PM
#4
Hyperactive Member
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:
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|