- call(Type) - Method in interface me.melchor9000.net.Callback
-
Executes the block of code with the argument arg.
- call() - Method in interface me.melchor9000.net.Procedure
-
Executes the block of code.
- call(Socket) - Method in class me.melchor9000.net.resolver.DNSResolver
-
- Callback<Type> - Interface in me.melchor9000.net
-
Abstracts a piece of code that will receive an argument
of type Type.
- cancel(boolean) - Method in interface me.melchor9000.net.Future
-
Attempts to cancel the task.
- cancel(boolean) - Method in class me.melchor9000.net.FutureImpl
-
- cancel() - Method in class me.melchor9000.net.IOService
-
Stops the event loop
- cancelAsync() - Method in class me.melchor9000.net.IOService
-
Stops the event loop asynchronously, useful when calling
this inside a
Callback.
- cause() - Method in interface me.melchor9000.net.Future
-
If the task is done and is not successful, then this method
gets the cause of the failure.
- cause() - Method in class me.melchor9000.net.FutureImpl
-
- changeParameters(SSLParameters) - Method in class me.melchor9000.net.SSLSocketConfigurator
-
Allows to change some parameters in the SSL engine, like enable
host identification for HTTPS.
- channel - Variable in class me.melchor9000.net.Acceptor
-
- channel - Variable in class me.melchor9000.net.Socket
-
- checkSocketCreated(String) - Method in class me.melchor9000.net.Acceptor
-
Call this method to check if the socket is created, if it's not,
then throws a
SocketNotCreated exception.
- checkSocketCreated(String) - Method in class me.melchor9000.net.Socket
-
Call this method to check if the socket is created, if it's not,
then throws a
SocketNotCreated exception.
- close() - Method in class me.melchor9000.net.Acceptor
-
- close() - Method in class me.melchor9000.net.resolver.DNSResolver
-
- close() - Method in class me.melchor9000.net.Socket
-
Closes the socket after the current operation is done.
- close() - Method in class me.melchor9000.net.TCPSocket
-
- closeAsync() - Method in class me.melchor9000.net.Acceptor
-
Stops the acceptor asynchronously.
- closeAsync() - Method in class me.melchor9000.net.resolver.DNSResolver
-
Closes the resolver asynchronously
- closeAsync() - Method in class me.melchor9000.net.Socket
-
Closes the socket after the current operation is done, and then
calls cbk with the result, either successful or failure.
- closeAsync() - Method in class me.melchor9000.net.TCPSocket
-
- configure(SslContextBuilder) - Method in class me.melchor9000.net.SSLSocketConfigurator
-
Allows a custom configuration for the SSL Context of the socket
- connect(SocketAddress) - Method in class me.melchor9000.net.Socket
-
Binds the socket to a random port and connects to the remote
endpoint.
- connect(InetAddress, int) - Method in class me.melchor9000.net.Socket
-
Binds the socket to a random port and connects to the remote endpoint as
address and port.
- connect(String, int) - Method in class me.melchor9000.net.Socket
-
Binds the socket to a random port and connects to the remote endpoint as
hostName and port.
- connect(SocketAddress) - Method in class me.melchor9000.net.TCPSocket
-
- connect(SocketAddress) - Method in class me.melchor9000.net.UDPSocket
-
- connectAsync(SocketAddress) - Method in class me.melchor9000.net.Socket
-
Binds the socket to a random port and connects to the remote endpoint
asynchronously.
- connectAsync(InetAddress, int) - Method in class me.melchor9000.net.Socket
-
Binds the socket to a random port and connects to the remote endpoint as
address and port.
- connectAsync(String, int) - Method in class me.melchor9000.net.Socket
-
Binds the socket to a random port and connects to the remote endpoint as
hostName and port.
- connectAsync(SocketAddress) - Method in class me.melchor9000.net.TCPSocket
-
- connectAsync(SocketAddress) - Method in class me.melchor9000.net.UDPSocket
-
- createFuture(Procedure) - Method in class me.melchor9000.net.Acceptor
-
- createFuture(Future<ReturnType>) - Method in class me.melchor9000.net.Acceptor
-
- createFuture(Procedure) - Method in class me.melchor9000.net.Socket
-
- createFuture(Future<ReturnType>) - Method in class me.melchor9000.net.Socket
-
- createSocketForImplementation(SocketChannel) - Method in class me.melchor9000.net.SSLAcceptor
-
- createSocketForImplementation(SocketChannel) - Method in class me.melchor9000.net.TCPAcceptor
-
- schedule(Procedure, long) - Method in class me.melchor9000.net.IOService
-
Executes the block of code in the event's loop Thread, when
have passed some milliseconds.
- send(ByteBuf, int) - Method in class me.melchor9000.net.Socket
-
Sends some data stored in the ByteBuf data, starting from its
current position with a size of bytes.
- send(ByteBuf) - Method in class me.melchor9000.net.Socket
-
Sends some data stored in the ByteBuf data, starting from its
current position with a size of data.remaining() bytes.
- send(String) - Method in class me.melchor9000.net.Socket
-
Sends the contents of the String using the default platform Charset,
without any extra characters.
- send(Serializable) - Method in class me.melchor9000.net.UDPSocket
-
- sendAsync(ByteBuf, int) - Method in class me.melchor9000.net.Socket
-
Sends some data stored in the ByteBuf data, starting from its
current position with a size of bytes.
- sendAsync(ByteBuf) - Method in class me.melchor9000.net.Socket
-
Sends some data stored in the ByteBuf data, with the remaining
bytes of it.
- sendAsync(String) - Method in class me.melchor9000.net.Socket
-
Sends the contents of the String using the default platform Charset,
without any extra characters.
- sendAsync(Serializable) - Method in class me.melchor9000.net.UDPSocket
-
- sendAsyncTo(ByteBuf, int, InetSocketAddress) - Method in class me.melchor9000.net.UDPSocket
-
- sendAsyncTo(ByteBuf, InetSocketAddress) - Method in class me.melchor9000.net.UDPSocket
-
- sendAsyncTo(String, InetSocketAddress) - Method in class me.melchor9000.net.UDPSocket
-
- sendAsyncTo(Serializable, InetSocketAddress) - Method in class me.melchor9000.net.UDPSocket
-
- sendBytes() - Method in class me.melchor9000.net.Socket
-
- sendTo(ByteBuf, int, InetSocketAddress) - Method in class me.melchor9000.net.UDPSocket
-
Sends the data contained in data with a length of bytes
to the remote endpoint endpoint.
- sendTo(ByteBuf, InetSocketAddress) - Method in class me.melchor9000.net.UDPSocket
-
Sends the data contained in data with a length of
data.remaining() to the remote endpoint endpoint.
- sendTo(String, InetSocketAddress) - Method in class me.melchor9000.net.UDPSocket
-
- sendTo(Serializable, InetSocketAddress) - Method in class me.melchor9000.net.UDPSocket
-
- Serializable - Class in me.melchor9000.net
-
Objects that can be serialized to and from a ByteBuf,
to send and receive objects of this type
- Serializable() - Constructor for class me.melchor9000.net.Serializable
-
- service - Variable in class me.melchor9000.net.Acceptor
-
- service - Variable in class me.melchor9000.net.Socket
-
- setAddress(Inet4Address) - Method in class me.melchor9000.net.resolver.DNSA
-
- setAddress(int, int, int, int) - Method in class me.melchor9000.net.resolver.DNSA
-
- setAddress(byte[]) - Method in class me.melchor9000.net.resolver.DNSA
-
- setAddress(Inet6Address) - Method in class me.melchor9000.net.resolver.DNSAAAA
-
- setAuthoritativeResponse(boolean) - Method in class me.melchor9000.net.resolver.DNSMessage
-
- setChildOption(ChannelOption<T>, T) - Method in class me.melchor9000.net.Acceptor
-
Before calling any bind() methods, this can set some default
options for the new sockets created when a client is connected.
- setClass(int) - Method in class me.melchor9000.net.resolver.DNSQuery
-
- setClass(String) - Method in class me.melchor9000.net.resolver.DNSQuery
-
- setClass(int) - Method in class me.melchor9000.net.resolver.DNSResourceRecord
-
- setClass(String) - Method in class me.melchor9000.net.resolver.DNSResourceRecord
-
- setCname(String) - Method in class me.melchor9000.net.resolver.DNSCNAME
-
- setData(DNSResourceData) - Method in class me.melchor9000.net.resolver.DNSResourceRecord
-
- setExchange(String) - Method in class me.melchor9000.net.resolver.DNSMX
-
- setId(int) - Method in class me.melchor9000.net.resolver.DNSMessage
-
- setName(String) - Method in class me.melchor9000.net.resolver.DNSQuery
-
- setName(String) - Method in class me.melchor9000.net.resolver.DNSResourceRecord
-
- setOnConnectionListener(Callback<SocketType>) - Method in class me.melchor9000.net.Acceptor
-
- setOnConnectionListener(Callback<TCPSocket>) - Method in class me.melchor9000.net.TCPAcceptor
-
- setOpcode(byte) - Method in class me.melchor9000.net.resolver.DNSMessage
-
- setOption(ChannelOption<T>, T) - Method in class me.melchor9000.net.Acceptor
-
Sets an option for the acceptor
- setOption(ChannelOption<T>, T) - Method in class me.melchor9000.net.Socket
-
Changes an option of this socket with a new value.
- setPreference(int) - Method in class me.melchor9000.net.resolver.DNSMX
-
- setQueryOrResponse(boolean) - Method in class me.melchor9000.net.resolver.DNSMessage
-
- setRecursionAvailable(boolean) - Method in class me.melchor9000.net.resolver.DNSMessage
-
- setRecursionDesired(boolean) - Method in class me.melchor9000.net.resolver.DNSMessage
-
- setResponseCode(byte) - Method in class me.melchor9000.net.resolver.DNSMessage
-
- setTimeout(long) - Method in interface me.melchor9000.net.Future
-
When set to a positive value (0 not included), will set a timeout,
starting the instant of type that this method was called, until
the milliseconds.
- setTimeout(long) - Method in class me.melchor9000.net.FutureImpl
-
- setTruncated(boolean) - Method in class me.melchor9000.net.resolver.DNSMessage
-
- setTtl(long) - Method in class me.melchor9000.net.resolver.DNSResourceRecord
-
- setType(int) - Method in class me.melchor9000.net.resolver.DNSQuery
-
- setType(String) - Method in class me.melchor9000.net.resolver.DNSQuery
-
- setType(int) - Method in class me.melchor9000.net.resolver.DNSResourceRecord
-
- setType(String) - Method in class me.melchor9000.net.resolver.DNSResourceRecord
-
- shutdown() - Method in class me.melchor9000.net.TCPSocket
-
Ends the input and output stream of this connection, but not closes
the connection.
- shutdownAsync() - Method in class me.melchor9000.net.TCPSocket
-
Ends the input and output stream of this connection, but not closes
the connection.
- shutdownInput() - Method in class me.melchor9000.net.TCPSocket
-
Ends the input stream of this connection, discarding any pending data to be
acknowledged.
- shutdownInputAsync() - Method in class me.melchor9000.net.TCPSocket
-
Ends the input stream of this connection, discarding any pending data to be
acknowledged.
- shutdownOutput() - Method in class me.melchor9000.net.TCPSocket
-
Ends the output stream of this connection, sending before any data pending
to send.
- shutdownOutputAsync() - Method in class me.melchor9000.net.TCPSocket
-
Ends the output stream of this connection, sending before any data pending
to send.
- Socket - Class in me.melchor9000.net
-
A Socket from any protocol which has the basic read and write
operations.
- socket - Variable in class me.melchor9000.net.TCPSocket
-
- SocketNotCreated - Exception in me.melchor9000.net
-
When tries to call a method that requires the
Socket
to be created.
- SocketUtil - Class in me.melchor9000.net
-
Some utilities when reading and writing stream based sockets
- SocketUtil() - Constructor for class me.melchor9000.net.SocketUtil
-
- SSLAcceptor - Class in me.melchor9000.net
-
Accepts SSL connections, and creates
SSLSocket for any new one,
using a public and private keys.
- SSLAcceptor(IOService, File, File) - Constructor for class me.melchor9000.net.SSLAcceptor
-
Creates a SSL acceptor for server applications.
- SSLAcceptor(IOService, InputStream, InputStream) - Constructor for class me.melchor9000.net.SSLAcceptor
-
Creates a SSL acceptor for server applications.
- SSLAcceptor(IOService, File, File, String) - Constructor for class me.melchor9000.net.SSLAcceptor
-
Creates a SSL acceptor for server applications.
- SSLAcceptor(IOService, InputStream, InputStream, String) - Constructor for class me.melchor9000.net.SSLAcceptor
-
Creates a SSL acceptor for server applications.
- SSLAcceptor(IOService, IOService, File, File) - Constructor for class me.melchor9000.net.SSLAcceptor
-
Creates a SSL acceptor for server applications.
- SSLAcceptor(IOService, IOService, InputStream, InputStream) - Constructor for class me.melchor9000.net.SSLAcceptor
-
Creates a SSL acceptor for server applications.
- SSLAcceptor(IOService, IOService, File, File, String) - Constructor for class me.melchor9000.net.SSLAcceptor
-
Creates a SSL acceptor for server applications.
- SSLAcceptor(IOService, IOService, InputStream, InputStream, String) - Constructor for class me.melchor9000.net.SSLAcceptor
-
Creates a SSL acceptor for server applications.
- SSLSocket - Class in me.melchor9000.net
-
SSL Socket for connexions to servers, based on a
TCPSocket.
- SSLSocket(IOService) - Constructor for class me.melchor9000.net.SSLSocket
-
Creates a SSL socket using the Java implementation and the system's keychain
certificates.
- SSLSocket(IOService, File) - Constructor for class me.melchor9000.net.SSLSocket
-
Creates a SSL socket using the Java implementation and the provided certificate
chain in .pem format.
- SSLSocket(IOService, InputStream) - Constructor for class me.melchor9000.net.SSLSocket
-
Creates a SSL socket using the Java implementation and the provided certificate
chain in .pem format.
- SSLSocket(IOService, SSLSocketConfigurator) - Constructor for class me.melchor9000.net.SSLSocket
-
- SSLSocketConfigurator - Class in me.melchor9000.net
-
For a
SSLSocket, allows to make custom configurations for the SSL Context
- SSLSocketConfigurator() - Constructor for class me.melchor9000.net.SSLSocketConfigurator
-
- sync() - Method in interface me.melchor9000.net.Future
-
Waits until the end of the task.
- sync() - Method in class me.melchor9000.net.FutureImpl
-