Skip navigation links
A B C D E F G H I O P R S T U W 

A

accept(AsynchronousSocketChannel) - Method in interface io.github.joealisson.mmocore.ConnectionFilter
This method must decide if a Connection can be accepted or not.

B

bufferDefaultSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets the size limit of the data buffer sent/received.
bufferDefaultSize(int) - Method in class io.github.joealisson.mmocore.Connector
Sets the size limit of the data buffer sent/received.
bufferLargePoolSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets the maximum amount of buffer with large size that can be holder on the BufferPool.
bufferLargePoolSize(int) - Method in class io.github.joealisson.mmocore.Connector
Sets the maximum amount of buffer with large size that can be holder on the BufferPool.
bufferLargeSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets the large size of the data buffer sent/received.
bufferLargeSize(int) - Method in class io.github.joealisson.mmocore.Connector
Sets the large size of the data buffer sent/received.
bufferMediumPoolSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets the maximum amount of buffer with medium size that can be holder on the BufferPool.
bufferMediumPoolSize(int) - Method in class io.github.joealisson.mmocore.Connector
Sets the maximum amount of buffer with medium size that can be holder on the BufferPool.
bufferMediumSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets the medium size of the data buffer sent/received.
bufferMediumSize(int) - Method in class io.github.joealisson.mmocore.Connector
Sets the medium size of the data buffer sent/received.
bufferPoolSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets the maximum amount of buffer with default size that can be holder on the BufferPool.
bufferPoolSize(int) - Method in class io.github.joealisson.mmocore.Connector
Sets the maximum amount of buffer with default size that can be holder on the BufferPool.
bufferSmallPoolSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets the maximum amount of buffer with small size that can be holder on the BufferPool.
bufferSmallPoolSize(int) - Method in class io.github.joealisson.mmocore.Connector
Sets the maximum amount of buffer with small size that can be holder on the BufferPool.
bufferSmallSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets the small size of the data buffer sent/received.
bufferSmallSize(int) - Method in class io.github.joealisson.mmocore.Connector
Sets the small size of the data buffer sent/received.
build() - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Builds a new ConnectionHandler based on the options configured.
byteOrder(ByteOrder) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets the byte order used to send and receive packets.
byteOrder(ByteOrder) - Method in class io.github.joealisson.mmocore.Connector
Sets the byte order used to send and receive packets.

C

Client<T extends Connection<?>> - Class in io.github.joealisson.mmocore
 
Client(T) - Constructor for class io.github.joealisson.mmocore.Client
Construct a new Client
client - Variable in class io.github.joealisson.mmocore.ReadablePacket
 
ClientFactory<T extends Client<Connection<T>>> - Interface in io.github.joealisson.mmocore
 
close(WritablePacket<? extends Client<T>>) - Method in class io.github.joealisson.mmocore.Client
Sends the packet and close the underlying Connection to the client.
connect(String, int) - Method in class io.github.joealisson.mmocore.Connector
Connects to a host using the address and port.
connect(InetSocketAddress) - Method in class io.github.joealisson.mmocore.Connector
Connects to a host with socketAddress
Connection<T extends Client<Connection<T>>> - Class in io.github.joealisson.mmocore
 
ConnectionBuilder<T extends Client<Connection<T>>> - Class in io.github.joealisson.mmocore
Builds the ConnectionHandler responsible to manage all incoming connections.
ConnectionBuilder() - Constructor for class io.github.joealisson.mmocore.ConnectionBuilder
 
ConnectionFilter - Interface in io.github.joealisson.mmocore
The filter of incoming connections.
ConnectionHandler<T extends Client<Connection<T>>> - Class in io.github.joealisson.mmocore
 
Connector<T extends Client<Connection<T>>> - Class in io.github.joealisson.mmocore
 
Connector() - Constructor for class io.github.joealisson.mmocore.Connector
 
create(Connection<T>) - Method in interface io.github.joealisson.mmocore.ClientFactory
This method must create a Client using the connection parameter.
create(InetSocketAddress, ClientFactory<T>, PacketHandler<T>, PacketExecutor<T>) - Static method in class io.github.joealisson.mmocore.ConnectionBuilder
Creates a ConnectionBuilder holding the minimum requirements to create a ConnectionHandler.
create(ClientFactory<T>, PacketHandler<T>, PacketExecutor<T>) - Static method in class io.github.joealisson.mmocore.Connector
Creates a Connector holding the minimum requirements to create a Client.

D

decrypt(byte[], int, int) - Method in class io.github.joealisson.mmocore.Client
Decrypt the data in-place
disconnect() - Method in class io.github.joealisson.mmocore.Client
 

E

encrypt(byte[], int, int) - Method in class io.github.joealisson.mmocore.Client
Encrypt the data in-place.
execute(ReadablePacket<T>) - Method in interface io.github.joealisson.mmocore.PacketExecutor
Executes the packet.

F

filter(ConnectionFilter) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets a filter to be used on incoming connections.

G

getClient() - Method in class io.github.joealisson.mmocore.ReadablePacket
 
getHostAddress() - Method in class io.github.joealisson.mmocore.Client
 

H

handlePacket(ByteBuffer, T) - Method in interface io.github.joealisson.mmocore.PacketHandler
Convert the data into a packet.

I

io.github.joealisson.mmocore - package io.github.joealisson.mmocore
 
isConnected() - Method in class io.github.joealisson.mmocore.Client
 

O

onConnected() - Method in class io.github.joealisson.mmocore.Client
Handles the client's connection.
onDisconnection() - Method in class io.github.joealisson.mmocore.Client
Handles the client's disconnection.

P

PacketExecutor<T extends Client<Connection<T>>> - Interface in io.github.joealisson.mmocore
This class is responsible to execute the incoming packets.
PacketHandler<T extends Client<Connection<T>>> - Interface in io.github.joealisson.mmocore
This class is responsible to handler the incoming data.

R

read(ByteBuffer) - Method in class io.github.joealisson.mmocore.ReadablePacket
 
ReadablePacket<T extends Client<Connection<T>>> - Class in io.github.joealisson.mmocore
This class represents a Packet received from the client.
ReadablePacket() - Constructor for class io.github.joealisson.mmocore.ReadablePacket
 
readSizedString(ByteBuffer) - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads a predefined length String from the buffer.
readString(ByteBuffer) - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads String from the buffer.
run() - Method in class io.github.joealisson.mmocore.ConnectionHandler
Start to listen connections.

S

shutdown() - Method in class io.github.joealisson.mmocore.ConnectionHandler
Shutdown the connection listener, the thread pool and all associated resources.
shutdownWaitTime(long) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Sets the shutdown wait time in milliseconds.
size(T) - Method in class io.github.joealisson.mmocore.WritablePacket
 
StaticPacket - Annotation Type in io.github.joealisson.mmocore
This Annotation indicates that a packet can hold static data.

T

threadPoolSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Set the size of the threadPool used to manage the connections and data sending.
toString() - Method in class io.github.joealisson.mmocore.WritablePacket
 

U

useNagle(boolean) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
Defines if small outgoing packets must be combined to be sent all at once.

W

WritablePacket<T extends Client<Connection<T>>> - Class in io.github.joealisson.mmocore
This class represents a Packet that can be sent to clients.
WritablePacket() - Constructor for class io.github.joealisson.mmocore.WritablePacket
 
write(T, ByteBuffer) - Method in class io.github.joealisson.mmocore.WritablePacket
Writes the data into the packet
writePacket(WritablePacket<? extends Client<T>>) - Method in class io.github.joealisson.mmocore.Client
Sends a packet to this client.
writeSizedString(CharSequence, ByteBuffer) - Method in class io.github.joealisson.mmocore.WritablePacket
Write String to the buffer preceded by a short 16 bit with String length and no null termination.
writeString(CharSequence, ByteBuffer) - Method in class io.github.joealisson.mmocore.WritablePacket
Write a String to the buffer with a null termination (\000).
A B C D E F G H I O P R S T U W 
Skip navigation links