Class ConnectorAdapter

java.lang.Object
java.lang.Thread
com.jme3.network.base.ConnectorAdapter
All Implemented Interfaces:
Runnable

public class ConnectorAdapter extends Thread
Wraps a single Connector and forwards new messages to the supplied message dispatcher. This is used by DefaultClient to manage its connector objects. This is only responsible for message reading and provides no support for buffering writes.

This adapter assumes a simple protocol where two bytes define a (short) object size with the object data to follow. Note: this limits the size of serialized objects to 32676 bytes... even though, for example, datagram packets can hold twice that. :P