java.lang.Object |
↳ |
com.commsignia.v2x.client.MalformedPacketHandler |
Class Overview
Represents a malformed packet handler which enables the user of the library to have more fine-grained control
over how the client library handles malformed packets. The default handler disconnects from the server and
shuts down the client.
Summary
Public Methods |
abstract
MalformedPacketHandler.Action
|
handle(int seq, byte[] payload)
Implement this method to specify the course of action to take when the client receives a malformed packet.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Fields
The default implementation for the malformed packet handler. Disconnects and shut down the client.
Convenience handler that always returns FAIL.
Convenience handler that always returns IGNORE.
Convenience handler that always returns RECONNECT.
Public Constructors
public
MalformedPacketHandler
()
Public Methods
Implement this method to specify the course of action to take when the client receives a malformed packet.
Parameters
seq |
sequence number of the command |
payload |
payload of the command |