protected static interface VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.PosixLibrary
extends com.sun.jna.Library
Modifier and Type | Interface and Description |
---|---|
static class |
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.PosixLibrary.SocketAddress
Represents an address for a POSIX socket.
|
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 com.sun.jna.LastErrorException
processId
- The process id to kill.signal
- The signal to send.com.sun.jna.LastErrorException
- If an error occurs.int socket(int domain, int type, int protocol) throws com.sun.jna.LastErrorException
domain
- The socket's domain.type
- The socket's type.protocol
- The protocol version.0
if no socket could be created.com.sun.jna.LastErrorException
- If an error occurs.int connect(int handle, VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.PosixLibrary.SocketAddress address, int length) throws com.sun.jna.LastErrorException
handle
- The socket's handle.address
- The address of the POSIX socket.length
- The length of the socket value.com.sun.jna.LastErrorException
- If an error occurs.int read(int handle, ByteBuffer buffer, int count) throws com.sun.jna.LastErrorException
handle
- The socket's handle.buffer
- The buffer to read from.count
- The bytes being read.com.sun.jna.LastErrorException
- If an error occurs.int write(int handle, ByteBuffer buffer, int count) throws com.sun.jna.LastErrorException
handle
- The socket's handle.buffer
- The buffer to write to.count
- The bytes being written.com.sun.jna.LastErrorException
- If an error occurs.int close(int handle) throws com.sun.jna.LastErrorException
handle
- The handle of the connection.com.sun.jna.LastErrorException
- If an error occurs.Copyright © 2014–2023. All rights reserved.