protected static interface VirtualMachine.ForHotSpotVm.Connection.ForJnaPosixSocket.PosixSocketLibrary
extends com.sun.jna.Library
Modifier and Type | Interface and Description |
---|---|
static class |
VirtualMachine.ForHotSpotVm.Connection.ForJnaPosixSocket.PosixSocketLibrary.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.ForHotSpotVm.Connection.ForJnaPosixSocket.PosixSocketLibrary.SocketAddress address,
int length)
Connects a socket connection.
|
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 socket(int domain, int type, int protocol)
domain
- The socket's domain.type
- The socket's type.protocol
- The protocol version.0
if no socket could be created.int connect(int handle, VirtualMachine.ForHotSpotVm.Connection.ForJnaPosixSocket.PosixSocketLibrary.SocketAddress address, int length)
handle
- The socket's handle.address
- The address of the POSIX socket.length
- The length of the socket value.0
if the socket was connected or an error code.int read(int handle, ByteBuffer buffer, int count)
handle
- The socket's handle.buffer
- The buffer to read from.count
- The bytes being read.int write(int handle, ByteBuffer buffer, int count)
handle
- The socket's handle.buffer
- The buffer to write to.count
- The bytes being written.int close(int handle)
handle
- The handle of the connection.0
if the socket was closed or an error code.Copyright © 2014–2019. All rights reserved.