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