I know that the PipeMsgEvent fires once a message is received.
Is there any way to detect events like when a peer as _started_ receiving a message?
No it is not. The message is read as a 'block' from the messenger (be it TCP, Http, multicast...) and then is sent to a processIncommingMessage() method which forwards it to the proper JXTA service handling it.
Can you be more clear with your question please?
Hi, thanks for reading the question. To clarify...
When implementing the net.jxta.pipe.PipeMsgListener interface, this is how we receive pipe messages as PipeMsgEvent passed through the listener allow us to get the associated JXTA message received by the pipe.
However, I want to know whether it is possible to detect a pipe event where a message begins to be received by an input pipe - e.g. If there is a slightly larger JXTA message (lets say towards a size of 64kb), I want to know the event time that the transport messenger begins to read the message from the remote sending peer. I do _not_ want the event fired _after_ the message is received, if that makes sense.
Is that possible?
it makes sense now.
I think you need to look lower level to detect the start of the transfer.
My suspicion is you need to look in deeper in the code and find where the message event comes from, and finally you will get to lower level API-s.
Unfortunately, I am not able to answer directly right now.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.