I'd like to communicate with mpv using Unix sockets, but Perl 6 doesn't offer any high level interface for doing that. So I thought I could write a little module for that, started digging deeper, found the implementation of IO::Socket::INET
, and learned about the NQP ops nqp::socket
and nqp::connect
.
However, I couldn't find any mention of those in the NQP operations list, and they seem to be quite distinct from the traditional BSD socket API. Hence I'd like to ask: are those two able to create a Unix socket and connect to it? If so, how? Or is there perhaps another way?
IO::Socket::UNIX
from Perl 5 by means ofInline::Perl5
which works like charm. I just wanted to know if there is a native solution. – Sporule