Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: MUD's with Perl?

by sintadil (Pilgrim)
on Sep 10, 2004 at 19:06 UTC ( [id://390162]=note: print w/replies, xml ) Need Help??


in reply to Re: MUD's with Perl?
in thread MUD's with Perl?

Mostly tips on the socket stuff. I'm pretty sure I can figure out most of the rest on my own. For example, do I need a program running on my server for the sockets, and how would I do this stuff?

Most MUDs set up a daemon which listens for connections. That's only half of the issue, though: you need to figure out how to listen for connections and process the game world with sufficiently low latency that your users don't crucify you upside-down by your :-) for creating something terribly slow. There's a few methods that you can employ to achieve this: forking, threads, and various non-forking models. Reading (and especially playing with the code in) perlipc is highly recommended required. If you can afford a book on the subject, I highly recommend Lincoln Stein's Network Programming with Perl. While not published by the Perl standby, O'Reilly, it's still worth the money.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://390162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-23 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found