socketpair

Vladimir Panteleev via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 30 23:48:03 PST 2015


On Thursday, 31 December 2015 at 02:37:07 UTC, sanjayss wrote:
> OK; one way I realized was to put the network socket select in 
> one thread and the watching for keypress in another thread and 
> then use the concurrency primitives to message pass events to 
> the main thread -- may be a little expensive, but it probably 
> will achieve the effect I desire.

Here is my implementation of this idea:

https://github.com/CyberShadow/ae/blob/master/net/sync.d


More information about the Digitalmars-d-learn mailing list