Hi,
I'm trying to pass a file descriptor from a python program to a nim program but
I can't find a way to do it:
# the server is created like this:
# var server = newAsyncSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP)
# server.bindUnix("\0proxy")
# and the client socket is dispatched to a processClient function
proc processClient(client: AsyncSocket) {.async.} =
var buf: cstring
let n = client.recvmsg(addr buf, 4096)
Run
but the compilation error is:
Error: attempting to call undeclared routine: 'recvmsg'
Run
So I guess that recvmsg is not defined for async sockets, is this expected/not
yet implemented ?
I tried to google for an example of message passing with a file descriptor
through an async socket but I could not find one.
Is it possible to do such a thing in nim ?