Package com.rcll.llsf_comm
Interface ProtobufMessageHandler
-
- All Known Implementing Classes:
RefboxHandler
public interface ProtobufMessageHandlerThe Interface ProtobufMessageHandler is used to handle received protobuf messages. Implement this interface if you want to be able to access the information in the retrieved messages. The ProtobufClient/ProtobufBroadcastPeer automatically passes incoming messages to your handler if you have registered it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnection_lost(java.io.IOException e)voidhandle_message(java.nio.ByteBuffer in_msg, com.google.protobuf.GeneratedMessageV3 msg)This method is called by the ProtobufClient/ProtobufBroadcastPeer.voidtimeout()
-
-
-
Method Detail
-
handle_message
void handle_message(java.nio.ByteBuffer in_msg, com.google.protobuf.GeneratedMessageV3 msg)This method is called by the ProtobufClient/ProtobufBroadcastPeer. The GeneratedMessage passed to it is an instance of the same type as the protobuf message you received. It is used to identify the type of the protobuf message. The actual model is contained in the ByteBuffer. You can read the tutorial to find out how to handle incoming messages correctly.- Parameters:
in_msg- the ByteBuffer containing the actual modelmsg- the instance of the same type as the protobuf message you received
-
connection_lost
void connection_lost(java.io.IOException e)
-
timeout
void timeout()
-
-