A B C D E F G H I O P R S T U W 
All Classes All Packages

A

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

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.

C

client - Variable in class io.github.joealisson.mmocore.ReadablePacket
 
Client<T extends Connection<?>> - Class in io.github.joealisson.mmocore
 
Client(T) - Constructor for class io.github.joealisson.mmocore.Client
Construct a new Client
ClientFactory<T extends Client<Connection<T>>> - Interface in io.github.joealisson.mmocore
 
close() - Method in class io.github.joealisson.mmocore.Client
close the underlying Connection to the client.
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(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.
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.

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.
encryptedSize(int) - Method in class io.github.joealisson.mmocore.Client
 
execute(ReadablePacket<T>) - Method in interface io.github.joealisson.mmocore.PacketExecutor
Executes the packet.
expose() - Method in class io.github.joealisson.mmocore.PacketBuffer
 

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(PacketBuffer, 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

PacketBuffer - Class in io.github.joealisson.mmocore
 
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() - Method in class io.github.joealisson.mmocore.PacketBuffer
Reads raw byte from the buffer
read() - 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
 
readBoolean() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads byte from the buffer
readByte() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads raw byte from the buffer
readBytes(byte[]) - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads as many bytes as the length of the array.
readBytes(byte[], int, int) - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads as many bytes as the given length (len).
readChar() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads char from the buffer
readDouble() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads double from the buffer.
readFloat() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads float from the buffer.
readInt() - Method in class io.github.joealisson.mmocore.PacketBuffer
Reads int from the buffer.
readInt() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads int from the buffer.
readIntAsBoolean() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads int from the buffer.
readLong() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads long from the buffer.
readShort() - Method in class io.github.joealisson.mmocore.PacketBuffer
Reads short from the buffer.
readShort() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads short from the buffer.
readShortAsBoolean() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads short from the buffer.
readSizedString() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads a predefined length String from the buffer.
readString() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads String from the buffer.
readUnsignedByte() - Method in class io.github.joealisson.mmocore.ReadablePacket
Reads byte from the buffer.
remaining() - Method in class io.github.joealisson.mmocore.PacketBuffer
 
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.
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) - Method in class io.github.joealisson.mmocore.WritablePacket
Writes the data to the client
writeByte(boolean) - Method in class io.github.joealisson.mmocore.WritablePacket
Write boolean to the buffer.
writeByte(byte) - Method in class io.github.joealisson.mmocore.WritablePacket
Write abyte to the buffer.
writeByte(int) - Method in class io.github.joealisson.mmocore.WritablePacket
Write a int to the buffer, the int is casted to a byte;
writeBytes(byte...) - Method in class io.github.joealisson.mmocore.WritablePacket
Write byte[] to the buffer.
writeChar(char) - Method in class io.github.joealisson.mmocore.WritablePacket
Write char to the buffer.
16 bit char
writeDouble(double) - Method in class io.github.joealisson.mmocore.WritablePacket
Write double to the buffer.
writeFloat(float) - Method in class io.github.joealisson.mmocore.WritablePacket
Write float to the buffer.
writeInt(boolean) - Method in class io.github.joealisson.mmocore.WritablePacket
Write boolean to the buffer.
writeInt(int) - Method in class io.github.joealisson.mmocore.WritablePacket
Write int to the buffer.
writeLong(long) - Method in class io.github.joealisson.mmocore.WritablePacket
Write long to the buffer.
writePacket(WritablePacket<? extends Client<T>>) - Method in class io.github.joealisson.mmocore.Client
Sends a packet to this client.
writeShort(boolean) - Method in class io.github.joealisson.mmocore.WritablePacket
Write boolean to the buffer.
writeShort(int) - Method in class io.github.joealisson.mmocore.WritablePacket
Write short to the buffer.
writeSizedString(CharSequence) - 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) - 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 
All Classes All Packages