Is there a way to deal with Unix sockets in Perl 6?

I would like to communicate with mpv using Unix sockets, but Perl 6 does not offer any high level interface for doing this. So I thought that I could write a small module for this, started digging deeper, found an implementation of IO::Socket::INET and learned about the NQP operations nqp::socket and nqp::connect .

However, I could not find any mention of those contained in the list of NQP operations , and they seem to be different from the traditional BSD socket APIs. So I would like to ask: can these two create a Unix socket and connect to it? If so, how? Or maybe another way?

+7
io perl6 sockets
source share
1 answer

I think the best way right now is to use the NativeCall interface to call level C functions. There is some old project documentation that assumes that IO :: Socket :: UNIX was conceived. But this did not reach the current issues of the language specification (for now).

+2
source share

All Articles