Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Drive the accepted socket from a separate thread #40

@pinver

Description

@pinver

Is there a way to do that, possibly with std.concurrency?

I've tried using a standard ala C way to setup a listening socket, transferring the socket FD via concurrency.send and instantiating a new std.io.net.socket.Socket(fd) and everything seems to work.

I can't concurrency.send the std.io.net.socket.Socket` as the compiler complains about Aliases to mutable thread-local data

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions