Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] I give up Re:(3)

From: russ:portone at: 8-Sep-2000 15:29

Cuz once the port is open, you can keep sending as long as you like... and close it only when done. That's the way ports work. Of course, the way this now stands there's no really safe closing taking place... but you can put that in later when you /QUIT IRC or whatever. Re ping/pong... you'll see them coming at you with this program.. if it stays alive long enough... and you can figure how to parse them and respond. I've done a whole IRC client in REBOL, but not in position to release it in total. It was quite a while ago, so I need lots of head scratching to go back and figure things out... but will help if you're REALLY stuck. Russ PS: Here's the section of my code that does the PONG... but you'll have to infer what 'p is.. and how I parsed it from the PING message received from server (you can ignore my debug and logging mode lines): if (find/case first p "PING") [ ; system PING (reply with PONG) if debug [ foreach item p [prin item] prin newline ] insert irc rejoin["PONG " second p newline] if debug [ print rejoin["PONG " second p newline] ] if logging [ append log rejoin["PONG " second p newline] ] --------- At 12:26 PM 9/8/2000 -0500, you wrote: