A B C D E F G H I O P R S T U W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractPacket<T> - Class in io.github.joealisson.mmocore
- AbstractPacket() - Constructor for class io.github.joealisson.mmocore.AbstractPacket
- 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.DataWrapper
- availableData() - 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 sent/received.
- bufferDefaultSize(int) - Method in class io.github.joealisson.mmocore.Connector
- 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
- bufferLargeSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
-
Sets the large size of the data sent/received.
- bufferLargeSize(int) - Method in class io.github.joealisson.mmocore.Connector
- 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
- bufferMediumSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
-
Sets the medium size of the data sent/received.
- bufferMediumSize(int) - Method in class io.github.joealisson.mmocore.Connector
- bufferMinPoolSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
-
Sets the maximum amount of buffer with min size that can be holder on the BufferPool.
- bufferMinPoolSize(int) - Method in class io.github.joealisson.mmocore.Connector
- bufferMinSize(int) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
-
Sets the min size of the data sent/received.
- bufferMinSize(int) - Method in class io.github.joealisson.mmocore.Connector
- 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
- 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
C
- client - Variable in class io.github.joealisson.mmocore.AbstractPacket
- 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(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
- connect(InetSocketAddress) - Method in class io.github.joealisson.mmocore.Connector
- 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
ConnectionHandlerresponsible 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
- 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
- DataWrapper - Class in io.github.joealisson.mmocore
-
This class is a data wrapper that supply a basic interface that facilitates the reading of the incoming data.
- 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.
- expose() - Method in class io.github.joealisson.mmocore.DataWrapper
F
- filter(ConnectionFilter) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
-
Sets a filter to be used on incoming connections.
G
- get() - Method in class io.github.joealisson.mmocore.DataWrapper
-
get the next byte from the underlying data.
- getClient() - Method in class io.github.joealisson.mmocore.AbstractPacket
- getHostAddress() - Method in class io.github.joealisson.mmocore.Client
- getInt() - Method in class io.github.joealisson.mmocore.DataWrapper
-
get the next integer from the underlying data.
- getShort() - Method in class io.github.joealisson.mmocore.DataWrapper
-
get the next short from the underlying data
H
- handlePacket(DataWrapper, 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> - 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.
- packetSize() - Method in class io.github.joealisson.mmocore.WritablePacket
-
By default this method return the size of the bufferSize configured.
R
- read() - Method in class io.github.joealisson.mmocore.DataWrapper
- read() - Method in class io.github.joealisson.mmocore.ReadablePacket
- ReadablePacket<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
- 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.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.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.
- run() - Method in class io.github.joealisson.mmocore.ConnectionHandler
- run() - Method in class io.github.joealisson.mmocore.DataWrapper
S
- shutdown() - Method in class io.github.joealisson.mmocore.ConnectionHandler
- shutdownWaitTime(long) - Method in class io.github.joealisson.mmocore.ConnectionBuilder
-
Sets the shutdown wait time.
- 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.
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() - Method in class io.github.joealisson.mmocore.WritablePacket
-
Writes the data into the packet
- 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).
All Classes All Packages