Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scroll down for reply..
- -> irc.freenode.org NICK TheHypnotist
- -> irc.freenode.org USER TheHypnoti "" "irc.freenode.org" :...
- <- :bartol.freenode.net NOTICE * :*** Looking up your hostname...
- <- :bartol.freenode.net NOTICE * :*** Checking Ident
- <- :bartol.freenode.net NOTICE * :*** Found your hostname
- <- :bartol.freenode.net NOTICE * :*** No Ident response
- <- :bartol.freenode.net 001 TheHypnotist :Welcome to the freenode Internet Relay Chat Network TheHypnotist
- -> bartol.freenode.net USERHOST TheHypnotist
- <- :bartol.freenode.net 002 TheHypnotist :Your host is bartol.freenode.net[212.117.163.190/6667], running version ircd-seven-1.0.3
- <- :bartol.freenode.net 003 TheHypnotist :This server was created Tue Feb 23 2010 at 23:02:09 UTC
- <- :bartol.freenode.net 004 TheHypnotist bartol.freenode.net ircd-seven-1.0.3 DOQRSZaghilopswz CFILMPQbcefgijklmnopqrstvz bkloveqjfI
- <- :bartol.freenode.net 005 TheHypnotist CHANTYPES=# EXCEPTS INVEX CHANMODES=eIbq,k,flj,CFLMPQcgimnprstz CHANLIMIT=#:120 PREFIX=(ov)@+ MAXLIST=bqeI:100 MODES=4 NETWORK=freenode KNOCK STATUSMSG=@+ CALLERID=g :are supported by this server
- <- :bartol.freenode.net 005 TheHypnotist SAFELIST ELIST=U CASEMAPPING=rfc1459 CHARSET=ascii NICKLEN=16 CHANNELLEN=50 TOPICLEN=390 ETRACE CPRIVMSG CNOTICE DEAF=D MONITOR=100 :are supported by this server
- <- :bartol.freenode.net 005 TheHypnotist FNC TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:4,NOTICE:4,ACCEPT:,MONITOR: EXTBAN=$,arx WHOX CLIENTVER=3.0 :are supported by this server
- <- :bartol.freenode.net 251 TheHypnotist :There are 872 users and 53247 invisible on 24 servers
- <- :bartol.freenode.net 252 TheHypnotist 35 :IRC Operators online
- <- :bartol.freenode.net 253 TheHypnotist 6 :unknown connection(s)
- <- :bartol.freenode.net 254 TheHypnotist 36295 :channels formed
- <- :bartol.freenode.net 255 TheHypnotist :I have 1070 clients and 1 servers
- <- :bartol.freenode.net 265 TheHypnotist 1070 2357 :Current local users 1070, max 2357
- <- :bartol.freenode.net 266 TheHypnotist 54119 62277 :Current global users 54119, max 62277
- <- :bartol.freenode.net 250 TheHypnotist :Highest connection count: 2358 (2357 clients) (214672 connections received)
- <- :bartol.freenode.net 375 TheHypnotist :- bartol.freenode.net Message of the Day -
- <- :bartol.freenode.net 372 TheHypnotist :- Welcome to bartol.freenode.net in Luxembourg, LU, EU.
- *snip*
- <- :bartol.freenode.net 372 TheHypnotist :- Thank you for using freenode!
- <- :bartol.freenode.net 372 TheHypnotist :-
- <- :bartol.freenode.net 376 TheHypnotist :End of /MOTD command.
- <- :TheHypnotist MODE TheHypnotist :+i
- <- :NickServ!NickServ@services. NOTICE TheHypnotist :This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>.
- -> bartol.freenode.net MODE TheHypnotist +i
- <- :frigg!~frigg@freenode/utility-bot/frigg PRIVMSG TheHypnotist :VERSION
- -> bartol.freenode.net NOTICE frigg :VERSION mIRC v6.35 Khaled Mardam-Bey
- <- :bartol.freenode.net 302 TheHypnotist :TheHypnotist=+~TheHypnot@77.102.235.42
- -> bartol.freenode.net NICK :tikkadee
- <- :TheHypnotist!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NICK :tikkadee
- -> bartol.freenode.net NICK :tikkadee
- <- :bartol.freenode.net 432 tikkadee admin :Erroneous Nickname
- -> bartol.freenode.net NICK :akkit
- <- :bartol.freenode.net 433 tikkadee akkit :Nickname is already in use.
- using my client, i will ping myself.. in other words calculate the duration of a roundtrip.. me -> server -> me.
- -> bartol.freenode.net PRIVMSG akkit :PING 1281281927
- <- :akkit!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NOTICE tikkadee :PING 1281281927
- so, my client sends the message..
- privmsg destination :[PING timestamp]\n
- the client that receives that message will then reply with..
- NOTICE source :[PING same_timestamp]\n
- the irc server will translate that, to this..
- :akkit!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NOTICE tikkadee :PING 1281281927
- :nickname!~ident@hostname NOTICE source :[PING same_timestamp]\n
- so..
- there is a thing called a moon bounce..
- you transmit a radio signal from earth, and it is then reflected off of the moon and received again back on earth..
- similarly with a ping, you send a message and wait for it's reply. if you send anything, you simply see that original message reflected back at you and that is quite useless...
- unless it's a time stamp
- PING 1281282499
- 3 seconds later i receive that message
- i put into a variable my own time stamp at this precise moment .. 1281282502
- subtract the old timestamp from the new one.. 1281282499
- 1281282502 - 1281282499 = 3
- since the timestamp is in whole seconds, we now know it took at least 3 seconds and less than 4 in order to complete the round trip..
- why did i say it's best the client sends this?
- well, I was thinking about being able to reuse that so any client can ping another client on demand to discover their current ping time.. such as during high load / utorrenting or whatever..
- that being said, of course, nothing stopping the server from iniating these pings.. of course, in fact.. they do anyway.
- <- PING :bartol.freenode.net
- -> bartol.freenode.net PONG :bartol.freenode.net
- the server just sent me it's name inside of a ping, since, ping responses contain the original message it's safe to assume they reply will be the server name - not that it really matters but it's nice to know that it probably will. (cant be arsed to read the RFC on IRC protocol right now to confirm)..
- so yeah, my client responded with PONG.
- notice that the protocol looks different from above..
- to and from a server
- <- PING :bartol.freenode.net
- -> bartol.freenode.net PONG :bartol.freenode.net
- to and from a client
- -> bartol.freenode.net PRIVMSG akkit :PING 1281281927
- <- :akkit!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NOTICE tikkadee :PING 1281281927
- etcetc
- helps at all?
- here are some other things that can be sent over IRC protocol..
- -> bartol.freenode.net PRIVMSG akkit :VERSION
- <- :akkit!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NOTICE tikkadee :VERSION mIRC v6.35 Khaled Mardam-Bey
- -> bartol.freenode.net PRIVMSG akkit :FINGER
- <- :akkit!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NOTICE tikkadee :FINGER ... (...) Idle 120 seconds
- yup, you can finger unsuspecting people.. hehehe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement