select for opening sockets in single threaded environment

K

Klaus

Hello,


I did post this message already recently, but do have the impression,
that this message never has never been pushed to other news servers.


Well.


I do have a single threaded application.


I want to be able to treat input from stdin and to listen() for incoming
socket connections on the same time.

How can I do this in a non blocking fashion?
(meaning, that I can read and process any input from stdin as soon as it
arrives and still know, when somebody connects to the port I was
listening to.


If my mail is not clear, then I will clarify.

I just don't want to write my message over and over again till the
newserver finally pushes my message to the 'world'
(However this time I saved my message ;-) )




bye

Klaus
 
R

Richard Bos

Klaus said:
I did post this message already recently, but do have the impression,
that this message never has never been pushed to other news servers.

It did, and Joona gave you a perfectly good answer: this is off-topic
here. Find a group where sockets are on-topic. For Unix sockets this
would probably be comp.unix.programmer; for WinSock,
microsoft.something.long.and.intractable.

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top