LoginPluginRequestHandler

The object that carries out login-plugin communications with the server.

These objects are to be implemented to achieve login procedure in which no LoginPluginRequest packet from the server modifies the state of the client. If that kind of state modification is necessary, one has to reimplement apply method entirely in order to allow login process to affect world-view initialization.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def handle(channel: String, data: Array[Byte]): Option[Array[Byte]]

The function to handle a channel-data pair from a LoginPluginRequest packet.

The function to handle a channel-data pair from a LoginPluginRequest packet.

This function returning a None indicates that the client has not understood the request from the server. Conversely, a Some(array) indicates that the client has understood the request and is ready to reply the server with array.

Concrete methods

def handleLoginPluginRequest: LoginPluginResponse
Extension method from LoginPluginRequestHandler

Combine this with another LoginPluginRequestHandler. The returned LoginPluginRequestHandler will handle a request using another whenever this fails to understand the request.

Combine this with another LoginPluginRequestHandler. The returned LoginPluginRequestHandler will handle a request using another whenever this fails to understand the request.