You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to send a Location Event from a Java program using the protobufs package.
I've created and sent a multicast LocationEvent message to a 0.9.1 Emane container. I can see the message arriving at the container using tcpdump, but it doesn't do anything.
It looks like we might have to encapsulate the LocationEvent into an Event message.
Is this correct?
And do you by any chance have a sample Java program that constructs and sends a Location Event?
Thanks.
Larry Bressler
The text was updated successfully, but these errors were encountered:
Yes, you have to add the serialized LocationEvent to an Event message. Then send the serialized Event message with the size of the serialized message (unsigned 16-bit integer in network byte order) preceding the serialized data.
I don't have an example java program available but there is an example C++ program that sends pathloss events: emane-example-cpp-events. Take a look starting at line 431 of example.cc
I'm trying to send a Location Event from a Java program using the protobufs package.
I've created and sent a multicast LocationEvent message to a 0.9.1 Emane container. I can see the message arriving at the container using tcpdump, but it doesn't do anything.
It looks like we might have to encapsulate the LocationEvent into an Event message.
Is this correct?
And do you by any chance have a sample Java program that constructs and sends a Location Event?
Thanks.
Larry Bressler
The text was updated successfully, but these errors were encountered: