Pretending known chardata is an I/O device?

Сергей Прохоров
Wed Jan 13 14:37:57 CET 2021

Hi, Yestin,

I recently implemented (write-only) IO-server in epgsql:

I'd say it's quite easy task to do, the protocol itself is very compact and
well documented and it has a complete example:

I think starting normal gen_server that takes your data string in `init/1`
or maybe receives it in a separate call would work fine. And you'd need to
handle `{io_request, ..}` messages in `handle_info` gen_server callback.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the erlang-questions mailing list