Uses of Class
marauroa.common.net.Channel
Package
Description
Stores all the messages classes.
The package stores the game related code: glue logic and RP system framework.
This package contains the classes that store information about players
connected to server.
Network communication.
This package handles flood detection.
The package stores the connection validator.
-
Uses of Channel in marauroa.common.net.message
Modifier and TypeFieldDescriptionprotected Channel
Message.channel
The socket channel that the message will use to be send or from where it was receivedModifier and TypeMethodDescriptionMessage.getChannel()
Returns the TCP/IP socket associatted with this messageModifier and TypeMethodDescriptionvoid
Message.setChannel(Channel channel)
Sets the TCP/IP source/destination of the messageModifierConstructorDescriptionprotected
Message(Message.MessageType type, Channel channel)
Constructor with a TCP/IP source/destination of the messageMessageC2SAction(Channel source, RPAction action)
Constructor with a TCP/IP source/destination of the message and action to send to serve.MessageC2SChooseCharacter(Channel source, String character)
Constructor with a TCP/IP source/destination of the message and the name of the choosen character.MessageC2SCreateAccount(Channel source, String username, String password, String email, String language)
Constructor with a TCP/IP source/destination of the message and username, password and email associated to the account to be created.MessageC2SCreateAccountWithToken(Channel source, String username, String tokenType, String token, String language)
Constructor with a TCP/IP source/destination of the message and username, token associated to the account to be created.MessageC2SCreateCharacter(Channel source, String character, RPObject template)
Constructor with a TCP/IP source/destination of the message and character name and character configuration.MessageC2SKeepAlive(Channel source)
Constructor with a TCP/IP source/destination of the messageMessageC2SLoginRequestKey(Channel source, boolean skip)
Constructor for allowing creation of an empty messagMessageC2SLoginRequestKey(Channel source, String game, String version)
Constructor with a TCP/IP source/destination of the message and game name and version.MessageC2SLoginSendNonceNameAndPassword(Channel source, byte[] nonce, String username, byte[] password)
Constructor with a TCP/IP source/destination of the message and the name of the choosen character.MessageC2SLoginSendNonceNamePasswordAndSeed(Channel source, byte[] nonce, String username, byte[] password, byte[] seed)
Constructor with a TCP/IP source/destination of the message and the name of the choosen character.MessageC2SLoginSendPromise(Channel source, byte[] hash, String language)
Constructor with a TCP/IP source/destination of the message and promiseMessageC2SLoginWithToken(Channel source, byte[] nonce, byte[] encryptedSessionKey, byte[] initVector, String username, String tokenType, byte[] encryptedToken)
Constructor with a TCP/IP source/destination of the message and the name of the choosen character.MessageC2SLogout(Channel source)
Constructor with a TCP/IP source/destination of the messageMessageC2SOutOfSync(Channel source)
Constructor with a TCP/IP source/destination of the messageMessageC2STransferACK(Channel source, List<TransferContent> content)
Constructor with a TCP/IP source/destination of the message and a list of the contents to confirm to server.MessageC2SUpdateResponse(Channel source, String response)
creates a new messageMessageP2SCreateAccount(Channel source, String credentials, String forwardedFor, String username, String password, String email)
Constructor with a TCP/IP source/destination of the message and username, password and email associated to the account to be created.MessageP2SCreateCharacter(Channel source, String credentials, String forwardedFor, String username, String character, RPObject template)
Constructor with a TCP/IP source/destination of the message and character name and character configuration.MessageS2CCharacterList(Channel source, String[] characters)
Constructor with a TCP/IP source/destination of the message and a list with the characters available to be played.MessageS2CCharacterList(Channel source, Map<String,RPObject> characters)
Constructor with a TCP/IP source/destination of the message and a list with the characters available to be played.MessageS2CChooseCharacterACK(Channel source)
Constructor with a TCP/IP source/destination of the messageMessageS2CChooseCharacterNACK(Channel source)
Constructor with a TCP/IP source/destination of the messageMessageS2CConnectNACK(Channel source)
Constructor with a TCP/IP source/destination of the messageMessageS2CCreateAccountACK(Channel source, String username)
Constructor with a TCP/IP source/destination of the message and the confirmed usernameMessageS2CCreateAccountNACK(Channel source, String username, Result resolution)
Constructor with a TCP/IP source/destination of the message and the cause of the rejection.MessageS2CCreateCharacterACK(Channel source, String character, RPObject template)
Constructor with a TCP/IP source/destination of the message and approved character name and avatar configuration.MessageS2CCreateCharacterNACK(Channel source, String character, Result resolution)
Constructor with a TCP/IP source/destination of the message and the reason to deny character creation.MessageS2CInvalidMessage(Channel source, String reason)
Constructor with a TCP/IP source/destination of the message and reason of the failure.MessageS2CLoginACK(Channel source, List<String> events)
Constructor with a TCP/IP source/destination of the messageMessageS2CLoginMessageNACK(Channel source, String reason)
Constructor with a TCP/IP source/destination of the messageMessageS2CLoginNACK(Channel source, MessageS2CLoginNACK.Reasons resolution)
Constructor with a TCP/IP source/destination of the messageMessageS2CLoginSendKey(Channel source, RSAPublicKey key)
Constructor with a TCP/IP source/destination of the message and the public key server is using.MessageS2CLoginSendNonce(Channel source, byte[] hash)
Constructor with a TCP/IP source/destination of the message and the name of the choosen character.MessageS2CLogoutACK(Channel source)
Constructor with a TCP/IP source/destination of the messageMessageS2CLogoutNACK(Channel source)
Constructor with a TCP/IP source/destination of the messageMessageS2CPerception(Channel source, Perception perception)
Constructor with a TCP/IP source/destination of the message and perception to send.MessageS2CServerInfo(Channel source, String[] contents)
Constructor with a TCP/IP source/destination of the message and the content.MessageS2CTransfer(Channel source)
Creates a new MessageS2CTransferMessageS2CTransfer(Channel source, TransferContent content)
Creates a new MessageS2CTransferMessageS2CTransferREQ(Channel source, List<TransferContent> contents)
creates a new MessageS2CTransferREQMessageS2CUpdate(Channel source, byte[] update)
creates a new messageMessageSendByteArray(Message.MessageType type, Channel source, byte[] hash)
Constructor with a TCP/IP source/destination of the message and the byte array to send. -
Uses of Channel in marauroa.server.auth
Modifier and TypeMethodDescriptionvoid
AuthenticationManager.verify(SecuredLoginInfo info, DelayedEventHandler callback, int clientid, Channel channel, int protocolVersion)
Verify that a player is whom he/she says it is.void
DatabaseAuthenticationManager.verify(SecuredLoginInfo info, DelayedEventHandler callback, int clientid, Channel channel, int protocolVersion)
Verify that a player is whom he/she says it is. -
Uses of Channel in marauroa.server.game
Modifier and TypeMethodDescriptionvoid
GameServerManager.onDisconnect(Channel channel)
This method is called by network manager when a client connection is lost or even when the client logout correctly. -
Uses of Channel in marauroa.server.game.container
Modifier and TypeMethodDescriptionAdd a new Player entry to the container.This method returns the entry that has been associated with this SocketChannel, or null if it does not exists. -
Uses of Channel in marauroa.server.game.dbcommand
ModifierConstructorDescriptionprotected
DBCommandWithCallback(DelayedEventHandler callback, int clientid, Channel channel, int protocolVersion)
Creates a new LoadCharacterCommandLoadActiveCharacterCommand(String username, String character, DelayedEventHandler callback, int clientid, Channel channel, int protocolVersion)
Creates a new LoadCharacterCommandLoadAllActiveCharactersCommand(String username, DelayedEventHandler callback, int clientid, Channel channel, int protocolVersion)
Creates a new LoadCharacterCommandLoadAllCharactersCommand(String username, DelayedEventHandler callback, int clientid, Channel channel, int protocolVersion)
Creates a new LoadCharacterCommandLoadCharacterCommand(String username, String character, DelayedEventHandler callback, int clientid, Channel channel, int protocolVersion)
Creates a new LoadCharacterCommandLoginCommand(SecuredLoginInfo info, DelayedEventHandler callback, int clientid, Channel channel, int protocolVersion)
creates a new LoginCommand. -
Uses of Channel in marauroa.server.net
Modifier and TypeMethodDescriptionNetworkServerManager.getChannel(Object internalChannel)
gets the channel associated with an internalChannelIServerManager.onConnect(ConnectionManager server, InetSocketAddress address, Object internalChannel)
This is a callback method that is called onConnectNetworkServerManager.onConnect(ConnectionManager connectionManager, InetSocketAddress address, Object internalChannel)
handles a connection from a clientModifier and TypeMethodDescriptionvoid
INetworkServerManager.disconnectClient(Channel channel)
This method disconnect a client or silently fails if client doesn't exists.void
NetworkServerManager.disconnectClient(Channel channel)
This method disconnect a socket.void
IDisconnectedListener.onDisconnect(Channel channel)
This method is called when a connection is closed. -
Uses of Channel in marauroa.server.net.flood
Modifier and TypeMethodDescriptionvoid
Adds a new channel to the flood validator.void
FloodValidator.onDisconnect(Channel channel)
Callback method. -
Uses of Channel in marauroa.server.net.validator