Currently, I get:
?- use_module(library(sockets)). true. ?- socket_server_open(7014, Socket), socket_server_accept(Socket, Client, Stream, [type(binary)]). ^C^C^C^C^Z
Ideally, socket_server_accept/4 can also be interrupted, much like read/1.
This might require a transition to mio or some other asynchronous I/O crate.
This might require a transition to
mioor some other asynchronous I/O crate.
I think Tokio would be more appropriate, mio is really the low-level library on top of which Tokio is built. This is an issue I can take a look at I think!
@matt2xu : Thank you a lot, I would greatly appreciate this!
Most helpful comment
I think Tokio would be more appropriate,
miois really the low-level library on top of which Tokio is built. This is an issue I can take a look at I think!