🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #282

non-blocking input

#282
From: Zafrir E. Gan
Date: Mon, 03 Aug 1992 07:32
8 lines
784 bytes
	I'm writing an interactive server that needs to check for input from
sockets as well as keyboard commands.  The socket part is already done
so what I need is a way to check for input on the keyboard, read it if
it's there but continue with the cycle if it isn't.  Any suggestions?


    \|/Zap\|/  ==>Happy Happy Joy Joy<==
Technical Details
Message-ID: <8eTJ5su00VpDQUk0Ml@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!zg03+

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!zg03+
From: zg03+@andrew.cmu.edu (Zafrir E. Gan)
Newsgroups: comp.unix.programmer
Subject: non-blocking input
Message-ID: <8eTJ5su00VpDQUk0Ml@andrew.cmu.edu>
Date: 3 Aug 92 07:32:08 GMT
Article-I.D.: andrew.8eTJ5su00VpDQUk0Ml
Organization: Senior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
Lines: 8