Home: Perl Programming Help: Intermediate:
Non-Blocking Server for Chat



AmyHunter
Deleted

Mar 26, 2001, 1:37 PM


Views: 576
Non-Blocking Server for Chat

I'm not sure if this belongs in intermediate or advanced, but I'm barely (if) intermediate in my skill level, so here goes...

For a class project, I'm trying to set up a chat with a graphical interface created with Delphi 5 and a perl server. All the server has to do is accept connections, check incoming msgs to see if they are supposed to be private, and spit the message out to the appropriate recipients. The problem is, I have no idea how to do this. I've only written a couple socket-related scripts in the past, and they were all blocking servers. I don't expect anyone to write a program for me, but I'd really appreciate it if someone could point me in the right direction to some decent examples or a book that could help me out.

Thank You VERY Much In Advance,
Amy



ChaoticPaladin
stranger

Aug 14, 2001, 10:51 PM


Views: 564
Re: Non-Blocking Server for Chat

Try the advanced perl programming book by O'reilly, matter of fact, I think they have just such a program as you are describing Amy. If Im not mistaken, it has what I believe is a black panther on the cover. I can check when I get home for you, but Im pretty sure that this book contains perl code for a network chat server :-)

Cp



ChaoticPaladin
stranger

Aug 14, 2001, 10:56 PM


Views: 563
Re: Non-Blocking Server for Chat

Hello again Amy,
just for some kicks I checked out my programming perl book here at work, and Im thinking this would do the trick here, its a client and server package, and not much to it either. It is in the o'reilly programming perl book. Page 349 to 354 I do believe. But the really nice chat server progs are in the advanced programming book. Hope that gets you what you need.


Cp