2

I have a (game) server that I am writing in python (3.1), and have a few questions on that.

The client program uses the socket module to connect to the server.

Multiple people may be connecting at any time, and I need a way to handle that. Would the best way be to employ the multi/sub processing module, and start a new process for each user who logs in, or is there a better way ?

Files will be used to store data. Do I need a lot of complex Queuing to handle file I/O ?

Is there an easy way to serve an entire file to the client, e.g. for an automated update ?

Thanks in advance!

2
  • 1
    How are you handling connections? Something you've rolled yourself, or Twisted, or a web framework like Django, or something else again? If using something like Twisted or Django the problem is reduced very significantly. Commented Nov 9, 2010 at 22:32
  • The client program uses the socket module to connect to the server. Commented Nov 9, 2010 at 22:42

1 Answer 1

1

Don't reinvent the wheel use Twisted.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.