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 6805837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:38:08+00:00 2026-05-26T19:38:08+00:00

I am building an app using Twisted in which a server contains some timers

  • 0

I am building an app using Twisted in which a server contains some timers and several times a second it writes the timer values to a client over UDP. The client needs to be able to send various commands (such as “pause timer 1” or “reset timer 2”) to the server to change the timers being sent to the client. The problem I see is that the client is constantly logging the timer values received from the server so I’m not sure how I can do this without blocking. I want to do this asynchronously, without any threading. Twisted provides numerous asynchronous IO options but I’m really not sure which would be the most appropriate because some of them (such as the basic.LineReceiver protocol) are still blocking while waiting for the user input.

Thanks in advance,
Ben

P.S. this is my first post so please let me know of any improvements I could make.

  • 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-26T19:38:08+00:00Added an answer on May 26, 2026 at 7:38 pm

    You can use twisted.internet.stdio for non-blocking standard I/O. This provides an alternate streaming, ordered, connection-oriented transport that can be used with any protocol that normally runs on such a transport (other similar transports include TCP and SSL).

    See stdin.py and stdiodemo.py linked from http://twistedmatrix.com/documents/current/core/examples/

    Also, LineReceiver isn’t “blocking while waiting for the user input”. It’s just a protocol, it doesn’t even do any I/O itself.

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

Sidebar

Related Questions

I'm building app using GAE and wanted to use Django for that. Which patch
Hello all: I'm building an app using C#/MVC3/Razor which has a database configured in
So I'm building an app using PHP and MongoDB which will have a fair
So I'm building an App using the Entity Framework on top of SQL Compact
I'm building a little app using Java and Swing in NetBeans. Using NetBeans design
I'm building a WPF app using pages and the navigation service. One of the
My team is considering building our next web app using the ASP.NET MVC framework.
I'm building an app in PHP and I'm using the data mapper pattern for
So I'm building an app that uses win32's SendMessage as IPC. I'm using FindWindow
I'm building a winForms app in NET3.5SP1 using VS2008Express. Am trying to deserialize an

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.