Index

A B C D E F G H I L N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AbstractSocketConnection - Class in org.omegazero.net.socket
A SocketConnection containing implementations for several interface methods and utility methods.
AbstractSocketConnection() - Constructor for class org.omegazero.net.socket.AbstractSocketConnection
Creates a new AbstractSocketConnection.
accept(Runnable) - Method in class org.omegazero.net.util.SyncWorker
Runs the given Runnable.
acceptwrites - Variable in class org.omegazero.net.util.LoopbackConnection
 
addBindAddress(InetAddress) - Method in class org.omegazero.net.server.NetServerBuilder
Adds a local address to bind to.
addDefaultCertificates(KeyStore) - Static method in class org.omegazero.net.util.TrustManagerUtil
Adds the certificates that the default trust manager trusts to the given KeyStore.
addImplementationAlias(String, String) - Static method in class org.omegazero.net.common.NetworkApplicationBuilder
Adds an implementation name alias.
addPort(int) - Method in class org.omegazero.net.server.NetServerBuilder
Adds a network port this server should listen on.
addReadData(byte[]) - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
Used for incoming connections on servers.
applicationLayerProtocols - Variable in class org.omegazero.net.server.NetServerBuilder
 
applicationLayerProtocols(String...) - Method in class org.omegazero.net.server.NetServerBuilder
Sets the application protocol name options the server presents.
applicationLayerProtocols(Collection<String>) - Method in class org.omegazero.net.server.NetServerBuilder
Sets the application protocol name options the server presents, for example during TLS Application-Layer Protocol Negotiation.

B

backlog - Variable in class org.omegazero.net.nio.server.TCPServer
 
bindAddress(InetAddress) - Method in class org.omegazero.net.server.NetServerBuilder
Sets the single local address the server should bind to.
bindAddresses - Variable in class org.omegazero.net.nio.server.TCPServer
 
bindAddresses - Variable in class org.omegazero.net.nio.server.UDPServer
 
bindAddresses - Variable in class org.omegazero.net.server.NetServerBuilder
 
bindAddresses(InetAddress...) - Method in class org.omegazero.net.server.NetServerBuilder
Sets the local addresses the server should bind to.
bindAddresses(Collection<InetAddress>) - Method in class org.omegazero.net.server.NetServerBuilder
Sets the local addresses the server should bind to.
build() - Method in class org.omegazero.net.client.NetClientManagerBuilder
 
build() - Method in class org.omegazero.net.common.NetworkApplicationBuilder
Creates the NetworkApplication from the previously set parameters.
build() - Method in class org.omegazero.net.nio.client.NioClientManagerBuilder
 
build() - Method in class org.omegazero.net.nio.server.NioServerBuilder
 
build() - Method in class org.omegazero.net.server.NetServerBuilder
 
build() - Method in class org.omegazero.net.util.LoopbackClientManagerBuilder
 
build() - Method in class org.omegazero.net.util.LoopbackServerBuilder
 

C

ChannelConnection - Class in org.omegazero.net.nio.socket
Represents a AbstractSocketConnection based on a java.nio SocketChannel or DatagramChannel.
ChannelConnection(SelectionKey, ChannelProvider) - Constructor for class org.omegazero.net.nio.socket.ChannelConnection
 
ChannelConnection(SelectionKey, ChannelProvider, SocketAddress) - Constructor for class org.omegazero.net.nio.socket.ChannelConnection
 
ChannelProvider - Interface in org.omegazero.net.nio.socket.provider
Used by ChannelConnections for I/O and wraps a java.nio channel.
close() - Method in interface org.omegazero.net.common.NetworkApplication
Closes this application, closing all bound and connected sockets and stopping the main loop, causing a call to NetworkApplication.start() to return.
close() - Method in class org.omegazero.net.nio.client.TCPClientManager
 
close() - Method in class org.omegazero.net.nio.client.UDPClientManager
 
close() - Method in class org.omegazero.net.nio.server.TCPServer
 
close() - Method in class org.omegazero.net.nio.server.UDPServer
 
close() - Method in class org.omegazero.net.nio.socket.ChannelConnection
 
close() - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
Closes the underlying java.nio channel.
close() - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
 
close() - Method in class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
close() - Method in interface org.omegazero.net.socket.SocketConnection
Closes this connection after all remaining data has been flushed to the socket, which may not be immediately.
close() - Method in class org.omegazero.net.util.LoopbackClientManager
 
close() - Method in class org.omegazero.net.util.LoopbackConnection
 
close() - Method in class org.omegazero.net.util.LoopbackServer
 
close0() - Method in class org.omegazero.net.nio.socket.ChannelConnection
Forcibly closes this connection.
close0() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
closeSelector() - Method in class org.omegazero.net.nio.util.SelectorHandler
Stops the selector loop, closes all channels registered with this selector and closes the Selector instance.
connect(int) - Method in class org.omegazero.net.nio.socket.ChannelConnection
 
connect(int) - Method in interface org.omegazero.net.socket.SocketConnection
Connects this SocketConnection to the previously specified remote address in the constructor.
connect(int) - Method in class org.omegazero.net.util.LoopbackConnection
 
connect(SocketAddress, int) - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
Connects the underlying java.nio channel to the given remote address.
connect(SocketAddress, int) - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
 
connect(SocketAddress, int) - Method in class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
connection(ConnectionParameters) - Method in interface org.omegazero.net.client.NetClientManager
Creates a new connection instance based on the given parameters to be managed by this NetClientManager.
connection(ConnectionParameters) - Method in class org.omegazero.net.nio.client.TCPClientManager
 
connection(ConnectionParameters) - Method in class org.omegazero.net.nio.client.UDPClientManager
 
connection(ConnectionParameters) - Method in class org.omegazero.net.util.LoopbackClientManager
 
connectionBacklog - Variable in class org.omegazero.net.server.NetServerBuilder
 
connectionBacklog(int) - Method in class org.omegazero.net.server.NetServerBuilder
Sets the maximum length of the queue for pending connections, if applicable.
connectionIdleTimeout - Variable in class org.omegazero.net.server.NetServerBuilder
 
connectionIdleTimeout(int) - Method in class org.omegazero.net.server.NetServerBuilder
Sets the minimum time in seconds to keep an idle connection with no traffic.
ConnectionParameters - Class in org.omegazero.net.client.params
Contains parameters for creating outgoing connections.
ConnectionParameters(SocketAddress) - Constructor for class org.omegazero.net.client.params.ConnectionParameters
ConnectionParameters(SocketAddress, SocketAddress) - Constructor for class org.omegazero.net.client.params.ConnectionParameters
ConnectionSelectorHandler - Class in org.omegazero.net.nio.util
 
ConnectionSelectorHandler() - Constructor for class org.omegazero.net.nio.util.ConnectionSelectorHandler
 
createBuffers() - Method in class org.omegazero.net.nio.socket.ChannelConnection
Must be called by subclass constructors.
createBuffers() - Method in class org.omegazero.net.nio.socket.NioPlaintextConnection
 
createBuffers() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
createConnection(SelectionKey, ConnectionParameters) - Method in class org.omegazero.net.nio.client.DTLSClientManager
 
createConnection(SelectionKey, ConnectionParameters) - Method in class org.omegazero.net.nio.client.PlainTCPClientManager
 
createConnection(SelectionKey, ConnectionParameters) - Method in class org.omegazero.net.nio.client.PlainUDPClientManager
 
createConnection(SelectionKey, ConnectionParameters) - Method in class org.omegazero.net.nio.client.TCPClientManager
 
createConnection(SelectionKey, ConnectionParameters) - Method in class org.omegazero.net.nio.client.TLSClientManager
 
createConnection(SelectionKey, ConnectionParameters) - Method in class org.omegazero.net.nio.client.UDPClientManager
 

D

DATAGRAM - Enum constant in enum class org.omegazero.net.common.NetworkApplicationBuilder.TransportType
Datagram network sockets, such as UDP.
DatagramChannelProvider - Class in org.omegazero.net.nio.socket.provider
DatagramChannelProvider() - Constructor for class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
This constructor should be used if the datagram channel is used as a client which is about to be connected to a server.
DatagramChannelProvider(SocketAddress, Consumer<ChannelConnection>) - Constructor for class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
This constructor should be used if the datagram channel is used as a server.
destroy() - Method in class org.omegazero.net.nio.socket.ChannelConnection
 
destroy() - Method in interface org.omegazero.net.socket.SocketConnection
Similar to SocketConnection.close(), except that the connection is closed immediately, without waiting for data to be flushed to the socket.
destroy() - Method in class org.omegazero.net.util.LoopbackConnection
 
doTLSHandshake() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
DTLSClientManager - Class in org.omegazero.net.nio.client
TLS client manager for UDP sockets (DTLS).
DTLSClientManager(Function<SocketConnection, Consumer<Runnable>>, SSLContext) - Constructor for class org.omegazero.net.nio.client.DTLSClientManager
 
DTLSServer - Class in org.omegazero.net.nio.server
TLS server for UDP sockets (DTLS).
DTLSServer(Collection<InetAddress>, Collection<Integer>, Function<SocketConnection, Consumer<Runnable>>, long, int, SSLContext) - Constructor for class org.omegazero.net.nio.server.DTLSServer
 

E

encrypted - Variable in class org.omegazero.net.common.NetworkApplicationBuilder
 
encrypted(boolean) - Method in class org.omegazero.net.client.NetClientManagerBuilder
 
encrypted(boolean) - Method in class org.omegazero.net.common.NetworkApplicationBuilder
Sets whether to use encryption.
encrypted(boolean) - Method in class org.omegazero.net.server.NetServerBuilder
 
EV_CLOSE - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
Event ID of the close event.
EV_CONNECT - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
Event ID of the connect event.
EV_DATA - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
Event ID of the data event.
EV_ERROR - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
Event ID of the error event.
EV_TIMEOUT - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
Event ID of the timeout event.
EV_WRITABLE - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
Event ID of the writable event.
eventEmitter - Variable in class org.omegazero.net.socket.AbstractSocketConnection
The event emitter used for events.

F

flush() - Method in class org.omegazero.net.nio.socket.ChannelConnection
Attempts to flush any queued data after a call to SocketConnection.writeQueue(byte[]) or data that could not be written previously because the socket was busy.
flush() - Method in class org.omegazero.net.nio.socket.NioPlaintextConnection
 
flush() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
flush() - Method in interface org.omegazero.net.socket.SocketConnection
Attempts to flush any queued data after a call to SocketConnection.writeQueue(byte[]) or data that could not be written previously because the socket was busy.
flush() - Method in class org.omegazero.net.util.LoopbackConnection
 
flushWriteBacklog() - Method in class org.omegazero.net.nio.socket.ChannelConnection
Attempts to write any remaining data in the write buffer and write backlog to the socket and returns true if all data could be written.

This method is equivalent to ChannelConnection.flush().

G

getAlpnNames() - Method in class org.omegazero.net.client.params.TLSConnectionParameters
Returns the configured ALPN options using TLSConnectionParameters.setAlpnNames(String[]).
getApparentRemoteAddress() - Method in class org.omegazero.net.socket.AbstractSocketConnection
 
getApparentRemoteAddress() - Method in interface org.omegazero.net.socket.SocketConnection
Returns the apparent remote address previously set by SocketConnection.setApparentRemoteAddress(SocketAddress), or the address returned by SocketConnection.getRemoteAddress() if none was set.
getApplicationProtocol() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
getApplicationProtocol() - Method in interface org.omegazero.net.socket.TLSConnection
Returns the application layer protocol name negotiated using a mechanism such as Application-Layer Protocol Negotiation (ALPN).
getBacklog() - Method in class org.omegazero.net.nio.server.TCPServer
 
getCipher() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
getCipher() - Method in interface org.omegazero.net.socket.TLSConnection
Returns the name of the TLS cipher suite used for this connection.
getIdleTimeout() - Method in class org.omegazero.net.nio.server.TCPServer
 
getIdleTimeout() - Method in class org.omegazero.net.nio.server.UDPServer
 
getLastIOTime() - Method in class org.omegazero.net.nio.socket.ChannelConnection
 
getLastIOTime() - Method in interface org.omegazero.net.socket.SocketConnection
Returns the last time any data was sent over this connection, either incoming or outgoing, as returned by System.currentTimeMillis().
getLastIOTime() - Method in class org.omegazero.net.util.LoopbackConnection
 
getLocal() - Method in class org.omegazero.net.client.params.ConnectionParameters
Returns the configured local address.
getLocalAddress() - Method in class org.omegazero.net.nio.socket.ChannelConnection
 
getLocalAddress() - Method in interface org.omegazero.net.socket.SocketConnection
Returns the local address of this connection.
getLocalAddress() - Method in class org.omegazero.net.util.LoopbackConnection
 
getNumber() - Method in class org.omegazero.net.util.LoopbackConnection
 
getOther() - Method in class org.omegazero.net.util.LoopbackConnection
 
getProtocol() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
getProtocol() - Method in interface org.omegazero.net.socket.TLSConnection
Returns the name of the protocol used for this connection.
getProvider() - Method in class org.omegazero.net.nio.socket.ChannelConnection
 
getReadLock() - Method in class org.omegazero.net.socket.AbstractSocketConnection
Returns the read lock.
getRemote() - Method in class org.omegazero.net.client.params.ConnectionParameters
Returns the configured remote address.
getRemoteAddress() - Method in class org.omegazero.net.nio.socket.ChannelConnection
 
getRemoteAddress() - Method in interface org.omegazero.net.socket.SocketConnection
Returns the address of the remote host.
getRemoteAddress() - Method in class org.omegazero.net.util.LoopbackConnection
 
getRSAKeySpec(byte[]) - Static method in class org.omegazero.net.util.PrivateKeyReader
Convert PKCS#1 encoded private key into RSAPrivateCrtKeySpec.
getSecureServerSocketFactory(String, String) - Static method in class org.omegazero.net.util.SSLUtil
getSelectionKey() - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
Returns the SelectionKey of this ChannelProvider.
getSelectionKey() - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
 
getSelectionKey() - Method in class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
getServer() - Method in class org.omegazero.net.util.LoopbackClientManager
 
getServerSocketFactory() - Static method in class org.omegazero.net.util.SSLUtil
getSniOptions() - Method in class org.omegazero.net.client.params.TLSConnectionParameters
Returns the configured SNI options using TLSConnectionParameters.setSniOptions(String[]).
getSSLContextFromKeyStore(String, String, String) - Static method in class org.omegazero.net.util.SSLUtil
Creates a SSLContext with the "TLS" protocol from a Java key store stored in a file identified by filename.
getSSLContextFromKeyStore(String, String, String, String) - Static method in class org.omegazero.net.util.SSLUtil
Creates a SSLContext from a Java key store stored in a file identified by filename.
getSSLContextFromPEM(String, String) - Static method in class org.omegazero.net.util.SSLUtil
Creates a SSLContext with the "TLS" protocol from PEM-encoded key and certificate files.
getSSLContextFromPEM(String, String, String) - Static method in class org.omegazero.net.util.SSLUtil
Creates a SSLContext from PEM-encoded key and certificate files.
getSSLEngineWithPEM(String, String) - Static method in class org.omegazero.net.util.SSLUtil
getSupportedApplicationLayerProtocols() - Method in class org.omegazero.net.nio.server.DTLSServer
 
getSupportedApplicationLayerProtocols() - Method in class org.omegazero.net.nio.server.TLSServer
 
getTrustAllManager() - Static method in class org.omegazero.net.util.TrustManagerUtil
Returns a trust manager array containing a single trust manager that accepts all certificates.

Warning: Trusting all certificates when using SSL is inherently dangerous as it defeats most of the purpose of it.
getTrustManagersWithAdditionalCertificateFiles(Collection<String>) - Static method in class org.omegazero.net.util.TrustManagerUtil
Loads the certificates from the given file paths using SSLUtil.loadCertificateFromPEM(String) and generates an array of trust managers using TrustManagerUtil.getTrustManagersWithAdditionalCertificates(Collection).

The given certificate files must only contain a single certificate each.
getTrustManagersWithAdditionalCertificates(Collection<X509Certificate>) - Static method in class org.omegazero.net.util.TrustManagerUtil
Generates an array of trust managers which are configured to accept all certificates that the default trust manager trusts in addition to the certificates passed in additionalTrustCertificates.
getVersion() - Static method in class org.omegazero.net.common.NetCommon
Returns the version string.
getWorker() - Method in class org.omegazero.net.socket.AbstractSocketConnection
Returns the worker for this AbstractSocketConnection.
getWriteLock() - Method in class org.omegazero.net.socket.AbstractSocketConnection
Returns the write lock.

H

handleClose() - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called by subclasses or classes managing this SocketConnection when this connection closed.
handleConnect() - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called internally, by subclasses or by classes managing this SocketConnection when this socket connects.
handleConnect(ChannelConnection) - Method in class org.omegazero.net.nio.client.DTLSClientManager
 
handleConnect(ChannelConnection) - Method in class org.omegazero.net.nio.client.PlainTCPClientManager
 
handleConnect(ChannelConnection) - Method in class org.omegazero.net.nio.client.PlainUDPClientManager
 
handleConnect(ChannelConnection) - Method in class org.omegazero.net.nio.client.TCPClientManager
Called when a connection was established.
handleConnect(ChannelConnection) - Method in class org.omegazero.net.nio.client.TLSClientManager
 
handleConnect(ChannelConnection) - Method in class org.omegazero.net.nio.client.UDPClientManager
Called after a connect request on a connection.
handleConnection(SelectionKey) - Method in class org.omegazero.net.nio.server.PlainTCPServer
 
handleConnection(SelectionKey) - Method in class org.omegazero.net.nio.server.TCPServer
 
handleConnection(SelectionKey) - Method in class org.omegazero.net.nio.server.TLSServer
 
handleConnection(SelectionKey, SocketAddress) - Method in class org.omegazero.net.nio.server.DTLSServer
 
handleConnection(SelectionKey, SocketAddress) - Method in class org.omegazero.net.nio.server.PlainUDPServer
 
handleConnection(SelectionKey, SocketAddress) - Method in class org.omegazero.net.nio.server.UDPServer
 
handleConnectionClosed(AbstractSocketConnection) - Method in class org.omegazero.net.nio.server.TCPServer
 
handleConnectionClosed(AbstractSocketConnection) - Method in class org.omegazero.net.nio.util.ConnectionSelectorHandler
Called when a connection closed.
handleConnectionPost(ChannelConnection) - Method in class org.omegazero.net.nio.server.PlainTCPServer
 
handleConnectionPost(ChannelConnection) - Method in class org.omegazero.net.nio.server.PlainUDPServer
 
handleConnectionPost(ChannelConnection) - Method in class org.omegazero.net.nio.server.TCPServer
 
handleConnectionPost(ChannelConnection) - Method in class org.omegazero.net.nio.server.UDPServer
 
handleData(byte[]) - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called by classes managing this SocketConnection when data was received using SocketConnection.read().
handleError(Throwable) - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called by subclasses or classes managing this SocketConnection when an error occurred in a callback.
handleSelectedKey(SelectionKey) - Method in class org.omegazero.net.nio.client.TCPClientManager
 
handleSelectedKey(SelectionKey) - Method in class org.omegazero.net.nio.client.UDPClientManager
 
handleSelectedKey(SelectionKey) - Method in class org.omegazero.net.nio.server.TCPServer
 
handleSelectedKey(SelectionKey) - Method in class org.omegazero.net.nio.server.UDPServer
 
handleSelectedKey(SelectionKey) - Method in class org.omegazero.net.nio.util.SelectorHandler
Called when a key was selected in a select call in the SelectorHandler.runSelectorLoop() method.
handleTimeout() - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called internally, by subclasses or by classes managing this SocketConnection when a connection attempt times out.
handleWritable() - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called by subclasses when this socket is writable.
hasConnected() - Method in class org.omegazero.net.socket.AbstractSocketConnection
 
hasConnected() - Method in interface org.omegazero.net.socket.SocketConnection
Returns true if the connect event has ever executed.
hasDisconnected() - Method in interface org.omegazero.net.socket.SocketConnection
Returns true if this socket has connected but is no longer connected.

I

init() - Method in interface org.omegazero.net.common.NetworkApplication
Initializes this application.
init() - Method in class org.omegazero.net.nio.client.TCPClientManager
 
init() - Method in class org.omegazero.net.nio.client.UDPClientManager
 
init() - Method in class org.omegazero.net.nio.server.TCPServer
 
init() - Method in class org.omegazero.net.nio.server.UDPServer
 
init() - Method in class org.omegazero.net.util.LoopbackClientManager
 
init() - Method in class org.omegazero.net.util.LoopbackServer
 
init(ChannelConnection, SelectionKey) - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
Initializes this ChannelProvider.
init(ChannelConnection, SelectionKey) - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
 
init(ChannelConnection, SelectionKey) - Method in class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
initSelector() - Method in class org.omegazero.net.nio.util.SelectorHandler
Initializes the Selector and sets this instance as running.

After this method has been called successfully,
invalid reference
SelectorHandler#selectorLoop()
should be called to start performing IO operations.
isAvailable() - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
Returns true if the underlying java.nio channel is connected.
isAvailable() - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
 
isAvailable() - Method in class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
isConnected() - Method in class org.omegazero.net.nio.socket.ChannelConnection
Returns true if this socket is connected.
isConnected() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
isConnected() - Method in interface org.omegazero.net.socket.SocketConnection
Returns true if this socket is connected.
isConnected() - Method in interface org.omegazero.net.socket.TLSConnection
Returns true if the socket is connected and the TLS handshake has completed.
isConnected() - Method in class org.omegazero.net.util.LoopbackConnection
 
isPrintStackTraces() - Static method in class org.omegazero.net.common.NetCommon
Deprecated.
Access NetCommon.PRINT_STACK_TRACES directly instead
isRunning() - Method in class org.omegazero.net.nio.util.SelectorHandler
Returns true while this SelectorHandler is running; this is the case in the time between calls to SelectorHandler.initSelector() and SelectorHandler.closeSelector().
isSocketConnected() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
isSocketConnected() - Method in interface org.omegazero.net.socket.TLSConnection
Returns true if the underlying socket is connected.
isWritable() - Method in class org.omegazero.net.nio.socket.ChannelConnection
 
isWritable() - Method in interface org.omegazero.net.socket.SocketConnection
Returns true if this socket is writable, meaning data passed to SocketConnection.write(byte[]) will not be buffered but written to the socket directly.
isWritable() - Method in class org.omegazero.net.util.LoopbackConnection
 

L

lastIOTime - Variable in class org.omegazero.net.util.LoopbackConnection
 
listenPath - Variable in class org.omegazero.net.server.NetServerBuilder
 
listenPath(String) - Method in class org.omegazero.net.server.NetServerBuilder
Sets the local file system path the server should listen on.
loadCertificateFromPEM(String) - Static method in class org.omegazero.net.util.SSLUtil
Reads a single X509Certificate from the given certFile.
loadCertificatesFromPEM(String) - Static method in class org.omegazero.net.util.SSLUtil
Reads one or more X509Certificate from the given certFile.
loadPrivateKeyFromPEM(String) - Static method in class org.omegazero.net.util.SSLUtil
Reads a PrivateKey from the given keyFile.
localClose() - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called by implementing classes when this connection was closed using any close method (SocketConnection.close() or SocketConnection.destroy()).
localConnect() - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called by implementing classes if this connection was established immediately upon calling SocketConnection.connect(int).
LOCALHOSTADDR - Static variable in class org.omegazero.net.util.LoopbackConnection
 
logSocketError(Logger, String, SocketConnection, Throwable) - Static method in class org.omegazero.net.common.NetCommon
 
LoopbackClientManager - Class in org.omegazero.net.util
NetClientManager implementation for loopback sockets.
LoopbackClientManager(Function<SocketConnection, Consumer<Runnable>>, LoopbackServer) - Constructor for class org.omegazero.net.util.LoopbackClientManager
 
LoopbackClientManagerBuilder - Class in org.omegazero.net.util
The NetClientManagerBuilder for creating application-internal loopback connections.
LoopbackClientManagerBuilder() - Constructor for class org.omegazero.net.util.LoopbackClientManagerBuilder
 
LoopbackConnection - Class in org.omegazero.net.util
invalid reference
SocketConnection
implementation for loopback sockets.
LoopbackConnection(int, InetSocketAddress) - Constructor for class org.omegazero.net.util.LoopbackConnection
 
LoopbackConnection(int, LoopbackConnection) - Constructor for class org.omegazero.net.util.LoopbackConnection
 
LoopbackServer - Class in org.omegazero.net.util
NetServer implementation for loopback sockets.
LoopbackServer(Function<SocketConnection, Consumer<Runnable>>) - Constructor for class org.omegazero.net.util.LoopbackServer
 
LoopbackServerBuilder - Class in org.omegazero.net.util
The NetServerBuilder for creating application-internal loopback connections.
LoopbackServerBuilder() - Constructor for class org.omegazero.net.util.LoopbackServerBuilder
 
loopIteration() - Method in class org.omegazero.net.nio.client.TCPClientManager
 
loopIteration() - Method in class org.omegazero.net.nio.util.ConnectionSelectorHandler
 
loopIteration() - Method in class org.omegazero.net.nio.util.SelectorHandler
Called every loop iteration in SelectorHandler.runSelectorLoop(), which is every time Selector.select() returns, either because a SelectionKey was selected or the selector was woken up for any other reason (for example after a call to SelectorHandler.selectorWakeup()).

This method does nothing by default.

N

NetClientManager - Interface in org.omegazero.net.client
Represents a client connection manager.
NetClientManagerBuilder - Class in org.omegazero.net.client
A NetworkApplicationBuilder for creating NetClientManagers.
NetClientManagerBuilder() - Constructor for class org.omegazero.net.client.NetClientManagerBuilder
 
NetCommon - Class in org.omegazero.net.common
 
NetCommon() - Constructor for class org.omegazero.net.common.NetCommon
 
NetServer - Interface in org.omegazero.net.server
Represents an application accepting SocketConnections from clients.
NetServerBuilder - Class in org.omegazero.net.server
A NetworkApplicationBuilder for creating NetServers.
NetServerBuilder() - Constructor for class org.omegazero.net.server.NetServerBuilder
 
NetworkApplication - Interface in org.omegazero.net.common
Represents any networking application (for example, a client or server).
NetworkApplicationBuilder - Class in org.omegazero.net.common
A builder class for creating NetworkApplications.
NetworkApplicationBuilder() - Constructor for class org.omegazero.net.common.NetworkApplicationBuilder
 
NetworkApplicationBuilder.TransportType - Enum Class in org.omegazero.net.common
An enum containing the transport type options of a network application.
newClientManager(String) - Static method in class org.omegazero.net.common.NetworkApplicationBuilder
Creates a new NetClientManagerBuilder to create a NetClientManager instance.
newConnection(AbstractSocketConnection) - Method in class org.omegazero.net.util.LoopbackServer
 
newServer(String) - Static method in class org.omegazero.net.common.NetworkApplicationBuilder
Creates a new NetServerBuilder to create a NetServer instance.
NioClientManagerBuilder - Class in org.omegazero.net.nio.client
The NetClientManagerBuilder for the nio implementation.
NioClientManagerBuilder() - Constructor for class org.omegazero.net.nio.client.NioClientManagerBuilder
 
NioPlaintextConnection - Class in org.omegazero.net.nio.socket
A ChannelConnection with no encryption.
NioPlaintextConnection(SelectionKey, ChannelProvider) - Constructor for class org.omegazero.net.nio.socket.NioPlaintextConnection
 
NioPlaintextConnection(SelectionKey, ChannelProvider, SocketAddress) - Constructor for class org.omegazero.net.nio.socket.NioPlaintextConnection
 
NioServerBuilder - Class in org.omegazero.net.nio.server
The NetServerBuilder for the nio implementation.
NioServerBuilder() - Constructor for class org.omegazero.net.nio.server.NioServerBuilder
 
NioTLSConnection - Class in org.omegazero.net.nio.socket
A ChannelConnection with TLS encryption.
NioTLSConnection(SelectionKey, ChannelProvider, SocketAddress, SSLContext, boolean, String[], String[]) - Constructor for class org.omegazero.net.nio.socket.NioTLSConnection
 
NioTLSConnection(SelectionKey, ChannelProvider, SSLContext, boolean, String[]) - Constructor for class org.omegazero.net.nio.socket.NioTLSConnection
 

O

off(String, GenericRunnable) - Method in class org.omegazero.net.socket.AbstractSocketConnection
 
off(String, GenericRunnable) - Method in interface org.omegazero.net.socket.SocketConnection
Removes an event listener previously registered using SocketConnection.on(String, GenericRunnable).
on(String, GenericRunnable) - Method in class org.omegazero.net.socket.AbstractSocketConnection
 
on(String, GenericRunnable) - Method in interface org.omegazero.net.socket.SocketConnection
Adds an event listener for the given event.
on(String, GenericRunnable.A0) - Method in interface org.omegazero.net.socket.SocketConnection
Adds an event listener for the given event.
on(String, GenericRunnable.A1<?>) - Method in interface org.omegazero.net.socket.SocketConnection
Adds an event listener for the given event.
once(String, GenericRunnable) - Method in class org.omegazero.net.socket.AbstractSocketConnection
 
once(String, GenericRunnable) - Method in interface org.omegazero.net.socket.SocketConnection
Adds a single-event event listener for the given event.
onConnectionClosed(AbstractSocketConnection) - Method in class org.omegazero.net.nio.server.UDPServer
 
onConnectionClosed(AbstractSocketConnection) - Method in class org.omegazero.net.nio.util.ConnectionSelectorHandler
Notify this ConnectionSelectorHandler that a ChannelConnection was closed locally by a call to SocketConnection.close().
org.omegazero.net.client - package org.omegazero.net.client
Provides client manager interfaces and utility classes.
org.omegazero.net.client.params - package org.omegazero.net.client.params
Provides classes for passing client socket creation parameters.
org.omegazero.net.common - package org.omegazero.net.common
Contains base classes of the networking library.
org.omegazero.net.nio.client - package org.omegazero.net.nio.client
Provides client manager implementations based on java.nio channels.
org.omegazero.net.nio.server - package org.omegazero.net.nio.server
Provides server implementations based on java.nio channels.
org.omegazero.net.nio.socket - package org.omegazero.net.nio.socket
Provides socket classes based on java.nio channels.
org.omegazero.net.nio.socket.provider - package org.omegazero.net.nio.socket.provider
 
org.omegazero.net.nio.util - package org.omegazero.net.nio.util
Provides utility classes for implementations based on java.nio channels.
org.omegazero.net.server - package org.omegazero.net.server
Provides server interfaces and utility classes.
org.omegazero.net.socket - package org.omegazero.net.socket
Provides classes representing network sockets.
org.omegazero.net.util - package org.omegazero.net.util
Contains miscellaneous utility classes for networking and security.

P

P1_BEGIN_MARKER - Static variable in class org.omegazero.net.util.PrivateKeyReader
 
P1_END_MARKER - Static variable in class org.omegazero.net.util.PrivateKeyReader
 
P8_BEGIN_MARKER - Static variable in class org.omegazero.net.util.PrivateKeyReader
 
P8_END_MARKER - Static variable in class org.omegazero.net.util.PrivateKeyReader
 
PlainTCPClientManager - Class in org.omegazero.net.nio.client
TCPClientManager implementation for plaintext TCP sockets.
PlainTCPClientManager(Function<SocketConnection, Consumer<Runnable>>) - Constructor for class org.omegazero.net.nio.client.PlainTCPClientManager
 
PlainTCPServer - Class in org.omegazero.net.nio.server
TCPServer implementation for plaintext TCP sockets.
PlainTCPServer(Collection<InetAddress>, Collection<Integer>, int, Function<SocketConnection, Consumer<Runnable>>, long) - Constructor for class org.omegazero.net.nio.server.PlainTCPServer
 
PlainUDPClientManager - Class in org.omegazero.net.nio.client
UDPClientManager implementation for plaintext TCP sockets.
PlainUDPClientManager(Function<SocketConnection, Consumer<Runnable>>) - Constructor for class org.omegazero.net.nio.client.PlainUDPClientManager
 
PlainUDPServer - Class in org.omegazero.net.nio.server
UDPServer implementation for plaintext UDP sockets.
PlainUDPServer(Collection<InetAddress>, Collection<Integer>, Function<SocketConnection, Consumer<Runnable>>, long, int) - Constructor for class org.omegazero.net.nio.server.PlainUDPServer
 
port(int) - Method in class org.omegazero.net.server.NetServerBuilder
Sets a single network port this server should listen on.
ports - Variable in class org.omegazero.net.nio.server.TCPServer
 
ports - Variable in class org.omegazero.net.nio.server.UDPServer
 
ports - Variable in class org.omegazero.net.server.NetServerBuilder
 
ports(int...) - Method in class org.omegazero.net.server.NetServerBuilder
Sets the network ports this server should listen on.
ports(Collection<Integer>) - Method in class org.omegazero.net.server.NetServerBuilder
Sets the network ports this server should listen on.
prepareBuild() - Method in class org.omegazero.net.common.NetworkApplicationBuilder
This method does parameter validation and preparations.
prepareBuild() - Method in class org.omegazero.net.server.NetServerBuilder
 
PRINT_STACK_TRACES - Static variable in class org.omegazero.net.common.NetCommon
System property org.omegazero.net.printStackTraces
PrivateKeyReader - Class in org.omegazero.net.util
Class for reading a RSA or EC private key from a PEM-formatted string.

Q

queueWrite(byte[]) - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called by implementing classes to queue data for writing before this connection has connected.

R

read() - Method in class org.omegazero.net.nio.socket.NioPlaintextConnection
 
read() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
read() - Method in interface org.omegazero.net.socket.SocketConnection
Reads data received from the peer host on this connection.
read() - Method in class org.omegazero.net.util.LoopbackConnection
 
read(String) - Static method in class org.omegazero.net.util.PrivateKeyReader
Parses the given PEM-formatted string representing a private key.
read(ByteBuffer) - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
Reads data from the underlying java.nio channel into the given buffer.
read(ByteBuffer) - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
 
read(ByteBuffer) - Method in class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
readBuf - Variable in class org.omegazero.net.nio.socket.ChannelConnection
 
readBufUnwrapped - Variable in class org.omegazero.net.nio.socket.NioTLSConnection
 
readCertificatePEM(String) - Static method in class org.omegazero.net.util.SSLUtil
Reads one or more encoded certificates from the given string data and returns the decoded bytes.
readFromSocket() - Method in class org.omegazero.net.nio.socket.ChannelConnection
Reads data into the read buffer using this ChannelConnection's ChannelProvider.
readLock - Variable in class org.omegazero.net.socket.AbstractSocketConnection
Lock for read operations.
registerChannel(SelectableChannel, int) - Method in class org.omegazero.net.nio.util.SelectorHandler
See SelectorHandler.registerChannel(SelectableChannel, int, Object).

An invocation of this method of the form
registerChannel(SelectableChannel, int, Object) - Method in class org.omegazero.net.nio.util.SelectorHandler
Registers the given channel with this SelectorHandler's Selector.
rethrowIOException() - Method in exception class org.omegazero.net.common.UnhandledException
If this UnhandledException wraps an IOException, this method throws it; otherwise, it does nothing.
run() - Method in interface org.omegazero.net.common.NetworkApplication
Method which implements the Runnable.run() function.
runAsync(Runnable) - Method in class org.omegazero.net.socket.AbstractSocketConnection
Delegates the given Runnable to this AbstractSocketConnection's worker.
runAsync(Consumer<T>, T) - Method in class org.omegazero.net.socket.AbstractSocketConnection
Delegates the given Consumer to this AbstractSocketConnection's worker.
runSelectorLoop() - Method in class org.omegazero.net.nio.util.SelectorHandler
Runs the loop that continuously selects channels using the Selector.

Will not return until SelectorHandler.closeSelector() is called.

S

SEC1_BEGIN_MARKER - Static variable in class org.omegazero.net.util.PrivateKeyReader
 
SEC1_END_MARKER - Static variable in class org.omegazero.net.util.PrivateKeyReader
 
SelectorHandler - Class in org.omegazero.net.nio.util
Wraps a java.nio Selector.
SelectorHandler() - Constructor for class org.omegazero.net.nio.util.SelectorHandler
 
selectorKeys() - Method in class org.omegazero.net.nio.util.SelectorHandler
Returns the set of registered SelectionKeys.
selectorWakeup() - Method in class org.omegazero.net.nio.util.SelectorHandler
Wakes up the selector, causing a selection loop iteration.
server(LoopbackServer) - Method in class org.omegazero.net.util.LoopbackClientManagerBuilder
 
set(String, Object) - Method in class org.omegazero.net.client.NetClientManagerBuilder
 
set(String, Object) - Method in class org.omegazero.net.common.NetworkApplicationBuilder
Sets an implementation specific configuration parameter.
set(String, Object) - Method in class org.omegazero.net.server.NetServerBuilder
 
set(String, Object) - Method in class org.omegazero.net.util.LoopbackClientManagerBuilder
 
setAlpnNames(String[]) - Method in class org.omegazero.net.client.params.TLSConnectionParameters
Sets the list of requested application layer protocol names to be negotiated using TLS ALPN (Application Layer Protocol Negotiation).
setApparentRemoteAddress(SocketAddress) - Method in class org.omegazero.net.socket.AbstractSocketConnection
 
setApparentRemoteAddress(SocketAddress) - Method in interface org.omegazero.net.socket.SocketConnection
Sets a possibly different remote address a client claims to be or act on behalf of.
setConnectionCallback(Consumer<SocketConnection>) - Method in class org.omegazero.net.nio.server.TCPServer
 
setConnectionCallback(Consumer<SocketConnection>) - Method in class org.omegazero.net.nio.server.UDPServer
 
setConnectionCallback(Consumer<SocketConnection>) - Method in interface org.omegazero.net.server.NetServer
Sets the callback for a new incoming connection.
setConnectionCallback(Consumer<SocketConnection>) - Method in class org.omegazero.net.util.LoopbackServer
 
setDefaultErrorListener(GenericRunnable.A1<Throwable>) - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called by classes managing this SocketConnection.
setIdleTimeout(long) - Method in class org.omegazero.net.nio.server.TCPServer
 
setIdleTimeout(long) - Method in class org.omegazero.net.nio.server.UDPServer
 
setOnClose(ThrowingRunnable) - Method in interface org.omegazero.net.socket.SocketConnection
Deprecated.
setOnConnect(ThrowingRunnable) - Method in interface org.omegazero.net.socket.SocketConnection
Deprecated.
setOnData(ThrowingConsumer<byte[]>) - Method in interface org.omegazero.net.socket.SocketConnection
Deprecated.
setOnError(Consumer<Throwable>) - Method in interface org.omegazero.net.socket.SocketConnection
Deprecated.
setOnLocalClose(Consumer<AbstractSocketConnection>) - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called by classes managing this SocketConnection.
setOnLocalConnect(Consumer<AbstractSocketConnection>) - Method in class org.omegazero.net.socket.AbstractSocketConnection
Called by classes managing this SocketConnection.
setOnTimeout(ThrowingRunnable) - Method in interface org.omegazero.net.socket.SocketConnection
Deprecated.
setOnWritable(ThrowingRunnable) - Method in interface org.omegazero.net.socket.SocketConnection
Deprecated.
setOther(LoopbackConnection) - Method in class org.omegazero.net.util.LoopbackConnection
 
setReadBlock(boolean) - Method in class org.omegazero.net.nio.socket.ChannelConnection
 
setReadBlock(boolean) - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
If given true, the underlying selection key should stop listening for read ops.
setReadBlock(boolean) - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
 
setReadBlock(boolean) - Method in class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
setReadBlock(boolean) - Method in interface org.omegazero.net.socket.SocketConnection
Enables or disables read blocking.
setReadBlock(boolean) - Method in class org.omegazero.net.util.LoopbackConnection
 
setSniOptions(String[]) - Method in class org.omegazero.net.client.params.TLSConnectionParameters
Sets the list of requested server names using TLS SNI (Server Name Indication).
setSupportedApplicationLayerProtocols(String[]) - Method in class org.omegazero.net.nio.server.DTLSServer
Sets the list of supported application layer protocol names to be negotiated using TLS ALPN (Application Layer Protocol Negotiation).
setSupportedApplicationLayerProtocols(String[]) - Method in class org.omegazero.net.nio.server.TLSServer
Sets the list of supported application layer protocol names to be negotiated using TLS ALPN (Application Layer Protocol Negotiation).
setWorker(Consumer<Runnable>) - Method in class org.omegazero.net.socket.AbstractSocketConnection
Sets the worker for this AbstractSocketConnection.
SOCKET_ERROR_DEBUG - Static variable in class org.omegazero.net.common.NetCommon
System property org.omegazero.net.socketErrorDebug
SocketChannelProvider - Class in org.omegazero.net.nio.socket.provider
SocketChannelProvider() - Constructor for class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
SocketConnection - Interface in org.omegazero.net.socket
Represents any type of connection between the local and a remote host.
sslContext - Variable in class org.omegazero.net.common.NetworkApplicationBuilder
 
sslContext(SSLContext) - Method in class org.omegazero.net.client.NetClientManagerBuilder
 
sslContext(SSLContext) - Method in class org.omegazero.net.common.NetworkApplicationBuilder
Sets the SSLContext to use for encryption.
sslContext(SSLContext) - Method in class org.omegazero.net.server.NetServerBuilder
 
SSLUtil - Class in org.omegazero.net.util
Contains utility methods for managing SSL/TLS objects and keys/certificates.
start() - Method in interface org.omegazero.net.common.NetworkApplication
Runs the main loop of this instance.
start() - Method in class org.omegazero.net.nio.client.TCPClientManager
 
start() - Method in class org.omegazero.net.nio.client.UDPClientManager
 
start() - Method in class org.omegazero.net.nio.server.TCPServer
 
start() - Method in class org.omegazero.net.nio.server.UDPServer
 
start() - Method in class org.omegazero.net.util.LoopbackClientManager
 
start() - Method in class org.omegazero.net.util.LoopbackServer
 
STREAM - Enum constant in enum class org.omegazero.net.common.NetworkApplicationBuilder.TransportType
Streaming network sockets, such as TCP.
SyncWorker - Class in org.omegazero.net.util
A Runnable consumer that executes given Runnables synchronously.
SyncWorker() - Constructor for class org.omegazero.net.util.SyncWorker
 

T

TCPClientManager - Class in org.omegazero.net.nio.client
TCP/IP implementation of a NetClientManager.
TCPClientManager(Function<SocketConnection, Consumer<Runnable>>) - Constructor for class org.omegazero.net.nio.client.TCPClientManager
 
TCPServer - Class in org.omegazero.net.nio.server
TCP/IP implementation of a NetServer.
TCPServer(Collection<InetAddress>, Collection<Integer>, int, Function<SocketConnection, Consumer<Runnable>>, long) - Constructor for class org.omegazero.net.nio.server.TCPServer
Constructs a new TCPServer instance.
TLSClientManager - Class in org.omegazero.net.nio.client
TLS client manager for TCP sockets.
TLSClientManager(Function<SocketConnection, Consumer<Runnable>>, SSLContext) - Constructor for class org.omegazero.net.nio.client.TLSClientManager
 
TLSConnection - Interface in org.omegazero.net.socket
Represents a SocketConnection encrypted using Transport Layer Security (TLS).
TLSConnectionParameters - Class in org.omegazero.net.client.params
Extended ConnectionParameters for connections encrypted using TLS.
TLSConnectionParameters(SocketAddress) - Constructor for class org.omegazero.net.client.params.TLSConnectionParameters
TLSConnectionParameters(SocketAddress, SocketAddress) - Constructor for class org.omegazero.net.client.params.TLSConnectionParameters
TLSServer - Class in org.omegazero.net.nio.server
TLS server for TCP sockets.
TLSServer(Collection<InetAddress>, Collection<Integer>, int, Function<SocketConnection, Consumer<Runnable>>, long, SSLContext) - Constructor for class org.omegazero.net.nio.server.TLSServer
 
transportType - Variable in class org.omegazero.net.common.NetworkApplicationBuilder
 
transportType(NetworkApplicationBuilder.TransportType) - Method in class org.omegazero.net.client.NetClientManagerBuilder
 
transportType(NetworkApplicationBuilder.TransportType) - Method in class org.omegazero.net.common.NetworkApplicationBuilder
Sets the NetworkApplicationBuilder.TransportType to use in this instance.
transportType(NetworkApplicationBuilder.TransportType) - Method in class org.omegazero.net.server.NetServerBuilder
 
TrustManagerUtil - Class in org.omegazero.net.util
 
TrustManagerUtil() - Constructor for class org.omegazero.net.util.TrustManagerUtil
 

U

UDPClientManager - Class in org.omegazero.net.nio.client
UDP/IP implementation of a NetClientManager.
UDPClientManager(Function<SocketConnection, Consumer<Runnable>>) - Constructor for class org.omegazero.net.nio.client.UDPClientManager
 
UDPServer - Class in org.omegazero.net.nio.server
UDP/IP implementation of a NetServer.
UDPServer(Collection<InetAddress>, Collection<Integer>, Function<SocketConnection, Consumer<Runnable>>, long, int) - Constructor for class org.omegazero.net.nio.server.UDPServer
Constructs a new UDPServer instance.

To initialize the server, NetworkApplication.init() of this object must be called.
UnhandledException - Exception Class in org.omegazero.net.common
Wraps any Throwable in this unchecked exception, accessible using Throwable.getCause().
UnhandledException(Throwable) - Constructor for exception class org.omegazero.net.common.UnhandledException
Creates a new UnhandledException with the given Throwable.

V

valueOf(String) - Static method in enum class org.omegazero.net.common.NetworkApplicationBuilder.TransportType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.omegazero.net.common.NetworkApplicationBuilder.TransportType
Returns an array containing the constants of this enum class, in the order they are declared.
VERSION - Static variable in class org.omegazero.net.common.NetCommon
The version string of omz-net-lib.

W

workerCreator - Variable in class org.omegazero.net.common.NetworkApplicationBuilder
 
workerCreator - Variable in class org.omegazero.net.nio.client.TCPClientManager
 
workerCreator - Variable in class org.omegazero.net.nio.client.UDPClientManager
 
workerCreator - Variable in class org.omegazero.net.nio.server.TCPServer
 
workerCreator - Variable in class org.omegazero.net.nio.server.UDPServer
 
workerCreator(Function<SocketConnection, Consumer<Runnable>>) - Method in class org.omegazero.net.client.NetClientManagerBuilder
 
workerCreator(Function<SocketConnection, Consumer<Runnable>>) - Method in class org.omegazero.net.common.NetworkApplicationBuilder
Sets a worker creator which creates a worker instance for each connection created.
workerCreator(Function<SocketConnection, Consumer<Runnable>>) - Method in class org.omegazero.net.server.NetServerBuilder
 
write(byte[]) - Method in interface org.omegazero.net.socket.SocketConnection
Writes data to this connection for delivery to the peer host.
write(byte[], int, int) - Method in class org.omegazero.net.nio.socket.NioPlaintextConnection
 
write(byte[], int, int) - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
write(byte[], int, int) - Method in interface org.omegazero.net.socket.SocketConnection
Writes data to this connection for delivery to the peer host.
write(byte[], int, int) - Method in class org.omegazero.net.util.LoopbackConnection
 
write(String) - Method in interface org.omegazero.net.socket.SocketConnection
Writes the given string encoded using UTF-8 to this connection for delivery to the peer host.
write(ByteBuffer) - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
Writes data from the given buffer to the underlying java.nio channel.
write(ByteBuffer) - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
 
write(ByteBuffer) - Method in class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
writeBacklogEnded() - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
Called by the ChannelConnection to indicate write backlog has ended.
writeBacklogEnded() - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
 
writeBacklogEnded() - Method in class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
writeBacklogStarted() - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
Called by the ChannelConnection to indicate write backlog has started because the outgoing socket buffer is full.
writeBacklogStarted() - Method in class org.omegazero.net.nio.socket.provider.DatagramChannelProvider
 
writeBacklogStarted() - Method in class org.omegazero.net.nio.socket.provider.SocketChannelProvider
 
writeBacklogStarted(ChannelConnection) - Method in class org.omegazero.net.nio.server.UDPServer
 
writeBuf - Variable in class org.omegazero.net.nio.socket.ChannelConnection
 
writeBuffered(byte[], int, int, boolean, ByteBuffer, ThrowingRunnable) - Method in class org.omegazero.net.nio.socket.ChannelConnection
 
writeBufUnwrapped - Variable in class org.omegazero.net.nio.socket.NioTLSConnection
 
writeLock - Variable in class org.omegazero.net.socket.AbstractSocketConnection
Lock for write operations.
writeQueue(byte[]) - Method in interface org.omegazero.net.socket.SocketConnection
Similar to SocketConnection.write(byte[]), except that no attempt will be made to immediately flush the data to the socket, if supported by the implementation.
writeQueue(byte[], int, int) - Method in class org.omegazero.net.nio.socket.NioPlaintextConnection
 
writeQueue(byte[], int, int) - Method in class org.omegazero.net.nio.socket.NioTLSConnection
 
writeQueue(byte[], int, int) - Method in interface org.omegazero.net.socket.SocketConnection
Similar to SocketConnection.write(byte[], int, int), except that no attempt will be made to immediately flush the data to the socket, if supported by the implementation.
writeQueue(byte[], int, int) - Method in class org.omegazero.net.util.LoopbackConnection
 
writeToSocket() - Method in class org.omegazero.net.nio.socket.ChannelConnection
Writes data from the write buffer using this ChannelConnection's ChannelProvider.
A B C D E F G H I L N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form