Simplified socket creation and handling

Nathan M. Swan nathanmswan at gmail.com
Mon May 21 12:06:22 PDT 2012


On Monday, 21 May 2012 at 17:54:56 UTC, Adam D. Ruppe wrote:
> On Saturday, 19 May 2012 at 20:33:49 UTC, Nathan M. Swan wrote:
>> It has some pitfalls (e.g. I can't find a good way to stop the 
>> server)
>
> When I use it, I just leave it open in a terminal window.
> Control+C can then kill it. (I'm on linux but I think the
> same would apply on Windows.)
>
> That's the only way right now. I was trying to make break;
> work in that connect opApply thing, but it didn't work
> right so there is no quit ability inside the app right now.

That's what I've done too, though it fails to call destructors.

I tried manager.quit(), but it results in segfaults for some 
reason (I think it has something to do with background threads).



More information about the Digitalmars-d-learn mailing list