public static class VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket extends VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel
| Modifier and Type | Class and Description |
|---|---|
static class |
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.Factory
A factory for a POSIX socket connection to a JVM using JNA.
|
protected static interface |
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.PosixLibrary
A JNA library binding for Posix sockets.
|
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket, VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor, VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe, VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel, VirtualMachine.ForHotSpot.Connection.Response| Modifier | Constructor and Description |
|---|---|
protected |
ForJnaPosixSocket(VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.PosixLibrary library,
int handle)
Creates a new connection for a Posix socket.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read(byte[] buffer)
Reads a buffer from the target VM.
|
void |
write(byte[] buffer)
Writes to the connected virtual machine.
|
execute, releaseprotected ForJnaPosixSocket(VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket.PosixLibrary library, int handle)
library - The JNA library to use.handle - The socket's handle.public int read(byte[] buffer)
buffer - The buffer to read to.-1 if no more bytes could be read.public void write(byte[] buffer)
write in class VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannelbuffer - The buffer to write to.public void close()
Copyright © 2014–2019. All rights reserved.