Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractSocketConnection - Class in org.omegazero.net.socket
-
A
SocketConnectioncontaining 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
NetworkApplicationfrom 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
- 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 ajava.niochannel. - 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.niochannel. - 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
Selectorinstance. - connect(int) - Method in class org.omegazero.net.nio.socket.ChannelConnection
- connect(int) - Method in interface org.omegazero.net.socket.SocketConnection
-
Connects this
SocketConnectionto 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.niochannel 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
-
Creates new
ConnectionParameters. - ConnectionParameters(SocketAddress, SocketAddress) - Constructor for class org.omegazero.net.client.params.ConnectionParameters
-
Creates new
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
-
A
ChannelProviderforDatagramChannels. - 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
closeevent. - EV_CONNECT - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
-
Event ID of the
connectevent. - EV_DATA - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
-
Event ID of the
dataevent. - EV_ERROR - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
-
Event ID of the
errorevent. - EV_TIMEOUT - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
-
Event ID of the
timeoutevent. - EV_WRITABLE - Static variable in class org.omegazero.net.socket.AbstractSocketConnection
-
Event ID of the
writableevent. - 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
trueif all data could be written.
This method is equivalent toChannelConnection.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 bySocketConnection.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
-
Deprecated.
- getSelectionKey() - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
-
Returns the
SelectionKeyof thisChannelProvider. - 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
-
Deprecated.
- 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
SSLContextwith 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
SSLContextfrom 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
SSLContextwith 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
SSLContextfrom PEM-encoded key and certificate files. - getSSLEngineWithPEM(String, String) - Static method in class org.omegazero.net.util.SSLUtil
-
Deprecated.
- 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 usingTrustManagerUtil.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
SocketConnectionwhen this connection closed. - handleConnect() - Method in class org.omegazero.net.socket.AbstractSocketConnection
-
Called internally, by subclasses or by classes managing this
SocketConnectionwhen 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
SocketConnectionwhen data was received usingSocketConnection.read(). - handleError(Throwable) - Method in class org.omegazero.net.socket.AbstractSocketConnection
-
Called by subclasses or classes managing this
SocketConnectionwhen 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
SocketConnectionwhen 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
trueif theconnectevent has ever executed. - hasDisconnected() - Method in interface org.omegazero.net.socket.SocketConnection
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
Selectorand sets this instance as running.
After this method has been called successfully,should be called to start performing IO operations.invalid reference
SelectorHandler#selectorLoop() - isAvailable() - Method in interface org.omegazero.net.nio.socket.provider.ChannelProvider
-
Returns
trueif the underlyingjava.niochannel 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
trueif this socket is connected. - isConnected() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
- isConnected() - Method in interface org.omegazero.net.socket.SocketConnection
-
Returns
trueif this socket is connected. - isConnected() - Method in interface org.omegazero.net.socket.TLSConnection
-
Returns
trueif 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_TRACESdirectly instead - isRunning() - Method in class org.omegazero.net.nio.util.SelectorHandler
-
Returns
truewhile thisSelectorHandleris running; this is the case in the time between calls toSelectorHandler.initSelector()andSelectorHandler.closeSelector(). - isSocketConnected() - Method in class org.omegazero.net.nio.socket.NioTLSConnection
- isSocketConnected() - Method in interface org.omegazero.net.socket.TLSConnection
-
Returns
trueif 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
trueif this socket is writable, meaning data passed toSocketConnection.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
X509Certificatefrom the given certFile. - loadCertificatesFromPEM(String) - Static method in class org.omegazero.net.util.SSLUtil
-
Reads one or more
X509Certificatefrom the given certFile. - loadPrivateKeyFromPEM(String) - Static method in class org.omegazero.net.util.SSLUtil
-
Reads a
PrivateKeyfrom 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()orSocketConnection.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
-
NetClientManagerimplementation 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
NetClientManagerBuilderfor creating application-internal loopback connections. - LoopbackClientManagerBuilder() - Constructor for class org.omegazero.net.util.LoopbackClientManagerBuilder
- LoopbackConnection - Class in org.omegazero.net.util
-
implementation for loopback sockets.
invalid reference
SocketConnection - 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
-
NetServerimplementation for loopback sockets. - LoopbackServer(Function<SocketConnection, Consumer<Runnable>>) - Constructor for class org.omegazero.net.util.LoopbackServer
- LoopbackServerBuilder - Class in org.omegazero.net.util
-
The
NetServerBuilderfor 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 timeSelector.select()returns, either because aSelectionKeywas selected or the selector was woken up for any other reason (for example after a call toSelectorHandler.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
NetworkApplicationBuilderfor creatingNetClientManagers. - 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
NetworkApplicationBuilderfor creatingNetServers. - 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
NetClientManagerBuilderto create aNetClientManagerinstance. - newConnection(AbstractSocketConnection) - Method in class org.omegazero.net.util.LoopbackServer
- newServer(String) - Static method in class org.omegazero.net.common.NetworkApplicationBuilder
-
Creates a new
NetServerBuilderto create aNetServerinstance. - NioClientManagerBuilder - Class in org.omegazero.net.nio.client
-
The
NetClientManagerBuilderfor the nio implementation. - NioClientManagerBuilder() - Constructor for class org.omegazero.net.nio.client.NioClientManagerBuilder
- NioPlaintextConnection - Class in org.omegazero.net.nio.socket
-
A
ChannelConnectionwith 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
NetServerBuilderfor the nio implementation. - NioServerBuilder() - Constructor for class org.omegazero.net.nio.server.NioServerBuilder
- NioTLSConnection - Class in org.omegazero.net.nio.socket
-
A
ChannelConnectionwith 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
ConnectionSelectorHandlerthat aChannelConnectionwas closed locally by a call toSocketConnection.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.niochannels. - org.omegazero.net.nio.server - package org.omegazero.net.nio.server
-
Provides server implementations based on
java.niochannels. - org.omegazero.net.nio.socket - package org.omegazero.net.nio.socket
-
Provides socket classes based on
java.niochannels. - 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.niochannels. - 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
-
TCPClientManagerimplementation 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
-
TCPServerimplementation 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
-
UDPClientManagerimplementation 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
-
UDPServerimplementation 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.niochannel 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
- 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'sSelector. - rethrowIOException() - Method in exception class org.omegazero.net.common.UnhandledException
-
If this
UnhandledExceptionwraps anIOException, 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
Runnableto thisAbstractSocketConnection's worker. - runAsync(Consumer<T>, T) - Method in class org.omegazero.net.socket.AbstractSocketConnection
-
Delegates the given
Consumerto thisAbstractSocketConnection'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 untilSelectorHandler.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.Since 2.2.0, use
SocketConnection.on(String, GenericRunnable)instead - setOnConnect(ThrowingRunnable) - Method in interface org.omegazero.net.socket.SocketConnection
-
Deprecated.Since 2.2.0, use
SocketConnection.on(String, GenericRunnable)instead - setOnData(ThrowingConsumer<byte[]>) - Method in interface org.omegazero.net.socket.SocketConnection
-
Deprecated.Since 2.2.0, use
SocketConnection.on(String, GenericRunnable)instead - setOnError(Consumer<Throwable>) - Method in interface org.omegazero.net.socket.SocketConnection
-
Deprecated.Since 2.2.0, use
SocketConnection.on(String, GenericRunnable)instead - 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.Since 2.2.0, use
SocketConnection.on(String, GenericRunnable)instead - setOnWritable(ThrowingRunnable) - Method in interface org.omegazero.net.socket.SocketConnection
-
Deprecated.Since 2.2.0, use
SocketConnection.on(String, GenericRunnable)instead - 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
-
A
ChannelProviderforSocketChannels. - 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
SSLContextto 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
Runnableconsumer that executes givenRunnables 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
TCPServerinstance. - 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
SocketConnectionencrypted using Transport Layer Security (TLS). - TLSConnectionParameters - Class in org.omegazero.net.client.params
-
Extended
ConnectionParametersfor connections encrypted using TLS. - TLSConnectionParameters(SocketAddress) - Constructor for class org.omegazero.net.client.params.TLSConnectionParameters
-
Creates new
TLSConnectionParameters. - TLSConnectionParameters(SocketAddress, SocketAddress) - Constructor for class org.omegazero.net.client.params.TLSConnectionParameters
-
Creates new
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.TransportTypeto 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
UDPServerinstance.
To initialize the server,NetworkApplication.init()of this object must be called. - UnhandledException - Exception Class in org.omegazero.net.common
-
Wraps any
Throwablein this unchecked exception, accessible usingThrowable.getCause(). - UnhandledException(Throwable) - Constructor for exception class org.omegazero.net.common.UnhandledException
-
Creates a new
UnhandledExceptionwith the givenThrowable.
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-8to 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.niochannel. - 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
ChannelConnectionto 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
ChannelConnectionto 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
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
SSLUtil.getSSLContextFromPEM(String, String)andSSLContext.getServerSocketFactory()