Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7029323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:31:26+00:00 2026-05-28T00:31:26+00:00

I plan to make a Python game server but I can’t see how to

  • 0

I plan to make a Python game server but I can’t see how to set it up.

The problem I have is that I need the server to listen for connections (with socket.socket.accept()?) but it hangs the code until a connection is made, which means the server can’t do anything else while it is waiting.

Is multi-threading the solution to this?

The other question is whether each client should connect at the start of the game and stay connected for the duration, or if the connection should be made every second to send/receive data.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:31:27+00:00Added an answer on May 28, 2026 at 12:31 am

    Correct, socket.accept() blocks by design. To handle connection in the background see SocketServer.ThreadingMixIn for example.

    http://docs.python.org/library/socketserver.html#asynchronous-mixins

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm coding simple game which I plan to make multiplayer (over the network) as
I have a plan to make a network redirector on android. I’m considering use
Does Telerik has a plan to make ASP.NET MVC's combobox have a feature of
I'm using MSVC, but I plan to make my library cross platform. Right now,
From SwingLabs Forum , it seems that there is no plan to make JXTreeTable
I plan to make an pretty big application on Facebook. Would it be a
I plan to use PyInstaller to create a stand-alone python executable. PythonInstaller comes with
I plan to have 2 projects. 1. mbtech.crm.mvc 2. mbtech.crm.tests I will have a
I plan on installing Multiple Instances of MS SQL EXPRESS on my Development Server.
I plan on building a simple, yet high usage webapp and need to settle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.