protected static interface VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.PosixLibrary extends Library
| Modifier and Type | Interface and Description |
|---|---|
static class |
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.PosixLibrary.SocketAddress
Represents an address for a POSIX socket.
|
Library.HandlerOPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER| Modifier and Type | Method and Description |
|---|---|
int |
close(int handle)
Closes the socket connection.
|
int |
connect(int handle,
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.PosixLibrary.SocketAddress address,
int length)
Connects a socket connection.
|
int |
kill(int processId,
int signal)
Sends a kill command.
|
int |
read(int handle,
ByteBuffer buffer,
int count)
Reads from a POSIX socket.
|
int |
socket(int domain,
int type,
int protocol)
Creates a POSIX socket connection.
|
int |
write(int handle,
ByteBuffer buffer,
int count)
Writes to a POSIX socket.
|
int kill(int processId,
int signal)
throws LastErrorException
processId - The process id to kill.signal - The signal to send.LastErrorException - If an error occurs.int socket(int domain,
int type,
int protocol)
throws LastErrorException
domain - The socket's domain.type - The socket's type.protocol - The protocol version.0 if no socket could be created.LastErrorException - If an error occurs.int connect(int handle,
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.PosixLibrary.SocketAddress address,
int length)
throws LastErrorException
handle - The socket's handle.address - The address of the POSIX socket.length - The length of the socket value.LastErrorException - If an error occurs.int read(int handle,
ByteBuffer buffer,
int count)
throws LastErrorException
handle - The socket's handle.buffer - The buffer to read from.count - The bytes being read.LastErrorException - If an error occurs.int write(int handle,
ByteBuffer buffer,
int count)
throws LastErrorException
handle - The socket's handle.buffer - The buffer to write to.count - The bytes being written.LastErrorException - If an error occurs.int close(int handle) throws LastErrorException
handle - The handle of the connection.LastErrorException - If an error occurs.Copyright © 2014–2021. All rights reserved.