luasocket icon indicating copy to clipboard operation
luasocket copied to clipboard

No support for abstract namespace?

Open tkim5574 opened this issue 8 years ago • 2 comments

#I saw that this module supports unix socket and I've been trying to use it with abstract address.

The below is the example code I tried: address = '\0/var' sock = socket.unix() sock:connect(address) which results in invalid argument.

Is there no support for abstract address?

tkim5574 avatar Jun 05 '17 13:06 tkim5574

It would need to be added because we end up using strlen() to compute the size of the path string. The modifications seem simple, in unixdgram.c and unixstream.c. If you send a pull request, I'll merge it.

diegonehab avatar Jun 08 '17 16:06 diegonehab

Will work on it soon

tkim5574 avatar Jun 16 '17 16:06 tkim5574