Skip to main content

Inputpipe events

4 replies [Last post]
davjoh
Offline
Joined: 2007-07-18

Hi everyone,

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?

Thanks,
-David

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
adamman71
Offline
Joined: 2007-01-31

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.

J.

ivarulz
Offline
Joined: 2007-08-17

Can you be more clear with your question please?

davjoh
Offline
Joined: 2007-07-18

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?

ivarulz
Offline
Joined: 2007-08-17

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.

Adrian