Advertisement
Guest User

Untitled

a guest
Jun 9th, 2017
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.35 KB | None | 0 0
  1. scroll down for reply..
  2.  
  3.  
  4. -> irc.freenode.org NICK TheHypnotist
  5. -> irc.freenode.org USER TheHypnoti "" "irc.freenode.org" :...
  6. <- :bartol.freenode.net NOTICE * :*** Looking up your hostname...
  7. <- :bartol.freenode.net NOTICE * :*** Checking Ident
  8. <- :bartol.freenode.net NOTICE * :*** Found your hostname
  9. <- :bartol.freenode.net NOTICE * :*** No Ident response
  10. <- :bartol.freenode.net 001 TheHypnotist :Welcome to the freenode Internet Relay Chat Network TheHypnotist
  11. -> bartol.freenode.net USERHOST TheHypnotist
  12. <- :bartol.freenode.net 002 TheHypnotist :Your host is bartol.freenode.net[212.117.163.190/6667], running version ircd-seven-1.0.3
  13. <- :bartol.freenode.net 003 TheHypnotist :This server was created Tue Feb 23 2010 at 23:02:09 UTC
  14. <- :bartol.freenode.net 004 TheHypnotist bartol.freenode.net ircd-seven-1.0.3 DOQRSZaghilopswz CFILMPQbcefgijklmnopqrstvz bkloveqjfI
  15. <- :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
  16. <- :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
  17. <- :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
  18. <- :bartol.freenode.net 251 TheHypnotist :There are 872 users and 53247 invisible on 24 servers
  19. <- :bartol.freenode.net 252 TheHypnotist 35 :IRC Operators online
  20. <- :bartol.freenode.net 253 TheHypnotist 6 :unknown connection(s)
  21. <- :bartol.freenode.net 254 TheHypnotist 36295 :channels formed
  22. <- :bartol.freenode.net 255 TheHypnotist :I have 1070 clients and 1 servers
  23. <- :bartol.freenode.net 265 TheHypnotist 1070 2357 :Current local users 1070, max 2357
  24. <- :bartol.freenode.net 266 TheHypnotist 54119 62277 :Current global users 54119, max 62277
  25. <- :bartol.freenode.net 250 TheHypnotist :Highest connection count: 2358 (2357 clients) (214672 connections received)
  26. <- :bartol.freenode.net 375 TheHypnotist :- bartol.freenode.net Message of the Day -
  27. <- :bartol.freenode.net 372 TheHypnotist :- Welcome to bartol.freenode.net in Luxembourg, LU, EU.
  28.  
  29. *snip*
  30.  
  31. <- :bartol.freenode.net 372 TheHypnotist :- Thank you for using freenode!
  32. <- :bartol.freenode.net 372 TheHypnotist :-
  33. <- :bartol.freenode.net 376 TheHypnotist :End of /MOTD command.
  34. <- :TheHypnotist MODE TheHypnotist :+i
  35. <- :NickServ!NickServ@services. NOTICE TheHypnotist :This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>.
  36. -> bartol.freenode.net MODE TheHypnotist +i
  37. <- :frigg!~frigg@freenode/utility-bot/frigg PRIVMSG TheHypnotist :VERSION
  38. -> bartol.freenode.net NOTICE frigg :VERSION mIRC v6.35 Khaled Mardam-Bey
  39. <- :bartol.freenode.net 302 TheHypnotist :TheHypnotist=+~TheHypnot@77.102.235.42
  40. -> bartol.freenode.net NICK :tikkadee
  41. <- :TheHypnotist!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NICK :tikkadee
  42. -> bartol.freenode.net NICK :tikkadee
  43. <- :bartol.freenode.net 432 tikkadee admin :Erroneous Nickname
  44. -> bartol.freenode.net NICK :akkit
  45. <- :bartol.freenode.net 433 tikkadee akkit :Nickname is already in use.
  46.  
  47.  
  48. using my client, i will ping myself.. in other words calculate the duration of a roundtrip.. me -> server -> me.
  49.  
  50. -> bartol.freenode.net PRIVMSG akkit :PING 1281281927
  51. <- :akkit!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NOTICE tikkadee :PING 1281281927
  52.  
  53. so, my client sends the message..
  54.  
  55. privmsg destination :[PING timestamp]\n
  56.  
  57. the client that receives that message will then reply with..
  58.  
  59. NOTICE source :[PING same_timestamp]\n
  60.  
  61. the irc server will translate that, to this..
  62.  
  63. :akkit!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NOTICE tikkadee :PING 1281281927
  64.  
  65. :nickname!~ident@hostname NOTICE source :[PING same_timestamp]\n
  66.  
  67. so..
  68.  
  69. there is a thing called a moon bounce..
  70.  
  71. you transmit a radio signal from earth, and it is then reflected off of the moon and received again back on earth..
  72.  
  73. 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...
  74.  
  75. unless it's a time stamp
  76.  
  77. PING 1281282499
  78.  
  79. 3 seconds later i receive that message
  80.  
  81. i put into a variable my own time stamp at this precise moment .. 1281282502
  82. subtract the old timestamp from the new one.. 1281282499
  83.  
  84. 1281282502 - 1281282499 = 3
  85.  
  86. 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..
  87.  
  88. why did i say it's best the client sends this?
  89.  
  90. 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..
  91.  
  92. that being said, of course, nothing stopping the server from iniating these pings.. of course, in fact.. they do anyway.
  93.  
  94. <- PING :bartol.freenode.net
  95. -> bartol.freenode.net PONG :bartol.freenode.net
  96.  
  97. 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)..
  98.  
  99. so yeah, my client responded with PONG.
  100.  
  101. notice that the protocol looks different from above..
  102.  
  103. to and from a server
  104. <- PING :bartol.freenode.net
  105. -> bartol.freenode.net PONG :bartol.freenode.net
  106.  
  107. to and from a client
  108.  
  109. -> bartol.freenode.net PRIVMSG akkit :PING 1281281927
  110. <- :akkit!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NOTICE tikkadee :PING 1281281927
  111.  
  112. etcetc
  113.  
  114.  
  115. helps at all?
  116.  
  117. here are some other things that can be sent over IRC protocol..
  118.  
  119.  
  120.  
  121. -> bartol.freenode.net PRIVMSG akkit :VERSION
  122. <- :akkit!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NOTICE tikkadee :VERSION mIRC v6.35 Khaled Mardam-Bey
  123. -> bartol.freenode.net PRIVMSG akkit :FINGER
  124. <- :akkit!~TheHypnot@cpc4-nmal17-2-0-cust41.croy.cable.virginmedia.com NOTICE tikkadee :FINGER ... (...) Idle 120 seconds
  125.  
  126. yup, you can finger unsuspecting people.. hehehe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement