mIRC Home    About    Download    Register    News    Help

Print Thread
#13035 25/02/03 12:54 PM
Joined: Jan 2003
Posts: 4
O
Self-satisified door
OP Offline
Self-satisified door
O
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..

#13036 25/02/03 12:58 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
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.

#13037 25/02/03 01:05 PM
Joined: Jan 2003
Posts: 4
O
Self-satisified door
OP Offline
Self-satisified door
O
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.
#13038 25/02/03 01:09 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
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.

#13039 26/02/03 12:16 AM
Joined: Feb 2003
Posts: 143
N
Vogon poet
Offline
Vogon poet
N
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)
#13040 26/02/03 06:03 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
This works on some networks, not on others
Code:
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
}

#13041 26/02/03 09:26 AM
Joined: Jan 2003
Posts: 4
O
Self-satisified door
OP Offline
Self-satisified door
O
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 wink
only question is if it is considered impolite to send
a time request to the servers once in a minute or so

#13042 27/05/03 07:59 PM
Joined: May 2003
Posts: 26
M
Ameglian cow
Offline
Ameglian cow
M
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.
#13043 27/05/03 11:16 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Code:

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!
#13044 28/05/03 02:02 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
That doesn't seem to work with some servers, I get no reply at all from some.


Link Copied to Clipboard