Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

irc via telnet, how to auto-pong?

Name: Anonymous 2008-02-02 13:23

Hello.

I'm using irc via telnet to learn more about the raw protocol. Everything runs smoothly except one thing that I find annoying. I need to reply to ping with pong <message from ping> every time the server requests it, otherwise it will disconnect me (ping timeout). Because of this I can't idle out and need to pay attention to ping requests. I'm trying to find some way to still use telnet normally only to make those pong replies more automatic so I can do something else. I tried googling and asking around on irc channels, but to no success so far. Any ideas? I'm connecting from a *nix server.

Name: Anonymous 2008-02-02 22:35

>>3
Write a program that connects to the specified address and port, and puts all data it receives on stdout, and sends all data it gets on stdin, except when it receives a server PING message, in which case it doesn't echo to stdout, and silently replies with a PONG.

Name: Anonymous 2008-02-02 22:35

And if you need further hints, look at the netcat source (not the telnet source, that's far too complicated)

Name: Anonymous 2008-02-03 0:34

A basic IRC client is trivial to write. Writing one was an exercise in my network programming course (it was a choice between IRC, HTTP, and FTP).

Name: Anonymous 2008-02-03 1:38

looks dumb to must of you sorry for posting such a question.

WHAT

Name: Anonymous 2008-02-03 2:24

                        _    _
                       ( \__//)
                        .'     )
                    __/p q  .  )
                   (_p_`,     .)
                    `--'-,-'  )
                         (.  )
    HAVE YOU READ       (   )
   YOUR PROGRAMMING     (   )
     PERL TODAY?       ( . )         .---.
                      (    )        (     )
                      (   . )      (  .    )
                      (      )    (      .  ),
                      ( .     `"'`  .       `)
                       (      .              .
                       ((  .      .   (   .  
                       ((       .    (       
                        ((     )     _( .   .

Name: Anonymous 2008-02-03 3:23

>>19
shutup wooly camel perl

Name: Anonymous 2008-02-03 3:26


                       //`'''```,'''```,'''```,'''```,'''``
             o        // HAVE YOU READ YOUR SICP TODAY?   `.,
       ,....OOo.   .c;.',,,.'``.,,.``.,,.``.,,.``.,,.``.,,.`
    .'      ____.,'.//
   / _____  \___/.' 
  | / ||  \\---\|
  ||  ||   \\  ||
  co  co    co co

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List