public abstract class C4Socket extends C4NativePeer
I think that this entire class should be re-architected to use a single-threaded executor. Incoming messages should be enqueued as tasks on the executor. That would allow the removal of all of the synchronization and assure that tasks were processed in order.
Note that state transitions come from 3 places. Neither of the two subclasses, MessageSocket nor
AbstractCBLWebSocket, allow inbound connections. For both, though shutdown is multiphase.
Modifier and Type | Field and Description |
---|---|
static int |
NO_FRAMING |
static int |
WEB_SOCKET_CLIENT_FRAMING |
static int |
WEB_SOCKET_SERVER_FRAMING |
public static final int WEB_SOCKET_CLIENT_FRAMING
public static final int NO_FRAMING
public static final int WEB_SOCKET_SERVER_FRAMING