|
|
Joined: Jan 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2003
Posts: 4 |
is there a way to get a reply from another server on the same network, i.e. to detect lag times between different servers.. one way to find out would be doing /whois nick nick for someone who is on that specific server, but i'm looking for something different..
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
I just tried it and there's no actual result, just a reply containing the URL of the leaf server.
/raw ping qld-chat.telstra.com [23:56:25] * PONG from chat.telstra.com: qld-chat.telstra.com
Maybe you'd be better off using DOS and ping the IRC server directly.
|
|
|
|
Joined: Jan 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2003
Posts: 4 |
no, if i ping the irc server directly i wont get the the lag between two servers, only the lag between my localhost and the server
but you're right, /quote ping :server.net only returns reply from the server i'm on
Last edited by onconnect; 25/02/03 01:05 PM.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
I've just browsed my server's help file (HelpServ). On this one at least it's not possible to do this.
|
|
|
|
Joined: Feb 2003
Posts: 143
Vogon poet
|
Vogon poet
Joined: Feb 2003
Posts: 143 |
you could use a timer to trigger a variable that will count the seconds it takes it get the reply. I myself would show an example but I am to tired to thing at the moment.
We don't just write the scripts, we put them to the test! (ScriptBusters)
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
This works on some networks, not on others alias serverping {
set -u60 %serverping. $+ $$1 $ticks
.raw time $1
}
raw 391:*:if %serverping. [ $+ [ $nick ] ] {
echo -a * ServerPing from $nick $+ : $calc(($ticks - $ifmatch)*.001) seconds
unset %serverping. $+ $nick
halt
}
|
|
|
|
Joined: Jan 2003
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2003
Posts: 4 |
thanx, RPL_TIME is exactly what i was looking for at least on ircnet all servers seem to reply maybe should have checked the rfc only question is if it is considered impolite to send a time request to the servers once in a minute or so
|
|
|
|
Joined: May 2003
Posts: 26
Ameglian cow
|
Ameglian cow
Joined: May 2003
Posts: 26 |
you can try useing some thing called a lag detector to detect lag on a server u can go to www.mircx.co.uk they have scripst wich u down load u should be able to find one there if u look
Last edited by marty1111; 27/05/03 08:01 PM.
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
Alias SPING if ($0) { set -u300 $+(%,SPING.,$1) $ticks } | .raw PING $ticks $1
On *:PONG: {
if ( $$2 isnum ) {
echo $colour(ctcp) -at [[ $+ $1 PING reply]: $calc($ticks - $2) $+ ms
}
elseif ( $2 == $me ) && ( $eval($+(%,SPING.,$1),2) ) {
echo $colour(ctcp) -at [[ $+ $1 PING reply]: $calc($ticks - $ifmatch) $+ ms
unset $+(%,SPING.,$1)
} } /SPING[irc.isprime.com PING reply]: 64ms/SPING irc.aol.com[irc.aol.com PING reply]: 351ms- Raccoon PS. From what I gather, the syntex of the server PING command is: PING [numalpha] [distant_server]numalpha ::= <0-9> <any_characters> the data must begin with a digit to return that value, else it will return your nick instead. If a server is specified, it will always return your nick, so the data you pass is ignored. :irc.server.com PONG irc.server.com :12345678:irc.server2.com PONG irc.server2.com :Raccoon
Last edited by Raccoon; 28/05/03 12:08 AM.
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
That doesn't seem to work with some servers, I get no reply at all from some.
|
|
|
|
|
|