public static class VirtualMachine.ForHotSpotVm.Connection.ForJnaPosixSocket extends Object implements VirtualMachine.ForHotSpotVm.Connection
Modifier and Type | Class and Description |
---|---|
static class |
VirtualMachine.ForHotSpotVm.Connection.ForJnaPosixSocket.Factory
A factory for a POSIX socket connection to a JVM using JNA.
|
protected static interface |
VirtualMachine.ForHotSpotVm.Connection.ForJnaPosixSocket.PosixSocketLibrary
A JNA library binding for Posix sockets.
|
VirtualMachine.ForHotSpotVm.Connection.ForJnaPosixSocket
Modifier | Constructor and Description |
---|---|
protected |
ForJnaPosixSocket(VirtualMachine.ForHotSpotVm.Connection.ForJnaPosixSocket.PosixSocketLibrary library,
int handle)
Creates a new connection for a Posix socket.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read(byte[] buffer)
Reads from the connected virtual machine.
|
void |
write(byte[] buffer)
Writes to the connected virtual machine.
|
protected ForJnaPosixSocket(VirtualMachine.ForHotSpotVm.Connection.ForJnaPosixSocket.PosixSocketLibrary library, int handle)
library
- The JNA library to use.handle
- The socket's handle.public int read(byte[] buffer)
read
in interface VirtualMachine.ForHotSpotVm.Connection
buffer
- The buffer to read from.public void write(byte[] buffer)
write
in interface VirtualMachine.ForHotSpotVm.Connection
buffer
- The buffer to write to.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2019. All rights reserved.