keycloak-federation
|
公開メンバ関数 | |
UnixSocket () | |
UnixSocket (UnixSocketAddress address) throws IOException | |
UnixSocket (String address) throws IOException | |
void | connect (UnixSocketAddress address) throws IOException |
void | connect (String address) throws IOException |
void | finalize () |
synchronized void | close () throws IOException |
InputStream | getInputStream () |
OutputStream | getOutputStream () |
UnixSocketAddress | getAddress () |
void | sendCredentialByte (byte data) throws IOException |
byte | recvCredentialByte () throws IOException |
boolean | getPassCred () |
int | getPeerUID () |
int | getPeerGID () |
int | getPeerPID () |
void | setPassCred (boolean enable) throws IOException |
boolean | getBlocking () |
void | setBlocking (boolean enable) |
boolean | isClosed () |
boolean | isConnected () |
boolean | isInputShutdown () |
boolean | isOutputShutdown () |
void | shutdownInput () |
void | shutdownOutput () |
void | setSoTimeout (int timeout) |
関数 | |
UnixSocket (int sock, UnixSocketAddress address) | |
非公開メンバ関数 | |
native void | native_set_pass_cred (int sock, boolean passcred) throws IOException |
native int | native_connect (String address, boolean abs) throws IOException |
native void | native_close (int sock) throws IOException |
native int | native_getPID (int sock) |
native int | native_getUID (int sock) |
native int | native_getGID (int sock) |
native void | native_send_creds (int sock, byte data) throws IOException |
native byte | native_recv_creds (int sock, int[] creds) throws IOException |
非公開変数類 | |
UnixSocketAddress | address = null |
USOutputStream | os = null |
USInputStream | is = null |
boolean | closed = false |
boolean | connected = false |
boolean | passcred = false |
int | sock = 0 |
boolean | blocking = true |
int | uid = -1 |
int | pid = -1 |
int | gid = -1 |
Represents a UnixSocket.
|
inlinepackage |
|
inline |
Create a socket connected to the given address.
address | The Unix Socket address to connect to |
|
inline |
Create a socket connected to the given address.
address | The Unix Socket address to connect to |
|
inline |
Closes the connection.
|
inline |
Connect the socket to this address.
address | The Unix Socket address to connect to |
|
inline |
Connect the socket to this address.
address | The Unix Socket address to connect to |
|
inline |
|
inline |
Returns the address this socket is connected to. Returns null if the socket is unconnected.
|
inline |
Get the blocking mode.
|
inline |
Returns an InputStream for reading from the socket.
|
inline |
Returns an OutputStream for writing to the socket.
|
inline |
Get the credential passing status. (only effective on linux)
|
inline |
Return the gid of the remote process. Some data must have been received on the socket to do this. Either setPassCred must be called on Linux first, or recvCredentialByte on BSD.
|
inline |
Return the pid of the remote process. Some data must have been received on the socket to do this. Either setPassCred must be called on Linux first, or recvCredentialByte on BSD.
|
inline |
Return the uid of the remote process. Some data must have been received on the socket to do this. Either setPassCred must be called on Linux first, or recvCredentialByte on BSD.
|
inline |
Check the socket status.
|
inline |
Check the socket status.
|
inline |
Check the socket status.
|
inline |
Check the socket status.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inline |
Receive a single byte of data, with credentials. (Works on BSDs)
data | The byte of data to send. |
|
inline |
Send a single byte of data with credentials. (Works on BSDs)
data | The byte of data to send. |
|
inline |
Set the blocking mode.
enable | Set to false for non-blocking reads. |
|
inline |
Set the credential passing status. (Only does anything on linux, for other OS, you need to use send/recv credentials)
enable | Set to true for credentials to be passed. |
|
inline |
Set timeout of read requests.
|
inline |
Shuts down the input stream. Subsequent reads on the associated InputStream will fail.
|
inline |
Shuts down the output stream. Subsequent writes to the associated OutputStream will fail.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |