Add support for Abstract namespace sockets
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 25 Aug 2009 15:09:53 +0000 (17:09 +0200)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 26 Aug 2009 09:53:01 +0000 (11:53 +0200)
commit99f13d4c3419e967e95c5ac6a3af61e9bb0fd3c0
tree5fedd2c1612b3a21f5a0945b138998ce73c0d4fc
parent289d61c2fe0a9a435b7e5828a3fbe9df5967f4d9
Add support for Abstract namespace sockets

Abstract namespace sockets are Linux-specific socket type that live in
AF_UNIX family, slightly abusing it to be able to use arbitrary
character arrays as addresses: They start with nul byte and are not
terminated by nul byte, but with the length passed to the socket()
system call.

Added regression test for the correct address length computation.

Signed-off-by: Lubomir Rintel <lkundrak@fedoraproject.org>
ext/Socket/Socket.xs
ext/Socket/t/Socket.t