Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The following is a description of a protocol I designed for an job candidate examination:
Receives lines from a client: iam <id> need-done <args> In response to a need-done, sends to a client that has given an "iam" message: dothis <args> Server ignores any other linesIt's basically a trivial job dispatch protocol where clients register to do work with a central server and are also able to request jobs. Designwise, it's pretty much all that the described chat server would do. The exam question asked them to describe the protocol given the following code and then identify at least three security holes (with proposed attacks) in the protocol as well as explain how you'd fix the security problems. Which is why it was written so badly. Sorry... For some reason, only one candidate even attempted the question. That aside, it's certainly possible to write a chat server in perl. It's not threaded, but I don't see why you'd really want a threaded server when so much state has to be shared between all the processes and the overhead of serving requests is so low. c. In reply to Re: Chat server impossible with Perl?
by beauregard
|
|