in reply to Re: Re: Instant Messaging Protocol
in thread Instant Messaging Protocol
Though one of the big servers hosting hundreds of clients might not be simple, you probably don't need that. Net::Jabber::Server contains example code for creating a server, and it's about the same length as the client code above. The only change you'd need to make is to change $Server->Process() to while(1) { $Server->Process() } or similar (probably with some additional error checking).
If you're doing serious embedded work, why are you using Perl? It's a memory hog. Making your own IM protocol won't change that fact.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Instant Messaging Protocol
by Eyck (Priest) on Jan 06, 2004 at 08:26 UTC |