Class JnrUnixSocketHelper
- java.lang.Object
-
- org.freedesktop.dbus.transport.jnr.JnrUnixSocketHelper
-
public final class JnrUnixSocketHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateJnrUnixSocketHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetUid(java.nio.channels.SocketChannel _sock)Get the UID of peer credentials.
-
-
-
Method Detail
-
getUid
public static int getUid(java.nio.channels.SocketChannel _sock) throws java.io.IOExceptionGet the UID of peer credentials.- Parameters:
_sock- socket to read from- Returns:
- UID, -1 if given
SocketChannelwas null - Throws:
java.io.IOException- when socket channel fails to read SO_PEERCRED option
-
-