MessageType
- The protobuf type which is used on this socket.
This MUST match the MessageType used in the parent ProtobufConnection
public static interface ProtobufConnection.Listener<MessageType extends com.google.protobuf.MessageLite>
Modifier and Type | Method and Description |
---|---|
void |
connectionClosed(ProtobufConnection<MessageType> handler)
Called when the connection is closed and no more data should be provided.
|
void |
connectionOpen(ProtobufConnection<MessageType> handler)
Called when the connection is opened and available for writing data to.
|
void |
messageReceived(ProtobufConnection<MessageType> handler,
MessageType msg)
Called when a new protobuf is received from the remote side.
|
void messageReceived(ProtobufConnection<MessageType> handler, MessageType msg)
void connectionOpen(ProtobufConnection<MessageType> handler)
void connectionClosed(ProtobufConnection<MessageType> handler)
Copyright © 2016. All rights reserved.