Skip to main content

JXME message chunking question

4 replies [Last post]
rbm6
Offline
Joined: 2007-09-30
Points: 0

Hi everyone,

I've got two JXME peers running on the same PC and communicating via a relay that resides on the same PC too. Since I'm sending a file that's more than 64k in size, I know that I have to send in chunks of data since the relay can only process 64k data chunk at a time. I'm trying to avoid from having to do message chunking myself. Is there an equivalent of JXTASocket for JXME peer? If so, can someone please point me to a tutorial/example of how this can be done?

I've been trying to figure this out for sometime now. Can anyone help please?

Cheers,
Rima.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rbm6
Offline
Joined: 2007-09-30
Points: 0

Thanks for the reply asghar.

Since I can't use JXTASocket API for my JXME application, I'd need to do message chunking myself before I can transfer a file with size >64KB. So my question now is how can i mark a message as read/unread so I don't read the same message twice at the receiving end. Does anyone know the answer?

Any help is very much appreciated.

Thanks.

hamada
Offline
Joined: 2003-06-12
Points: 0

use a transitory buffer of the desired size to enforce the size limit (see JxtaSocketOutputStream)

asghar
Offline
Joined: 2005-07-26
Points: 0

Hi Rima,

The package net.jxta.[b]socket[/b] is [b]missing[/b] for currently available [b]proxy-based[/b] version of JXME 2.1.3, both configurations (CDC and CLDC)

The [b]proxyless[/b] JXME (enabling JXME-based peers to cash Adverts and participate in message propagation) will be available to community’s members in future (hopefully soon).
I also don’t know, if it includes the socket API…

Asghar

rbm6
Offline
Joined: 2007-09-30
Points: 0

Thanks for the reply asghar.

Since I can't use JXTASocket API for my JXME application, I'd need to do message chunking myself before I can transfer a file with size >64KB. So my question now is how can i mark a message as read/unread so I don't read the same message twice at the receiving end. Does anyone know the answer?

Any help is very much appreciated.

Thanks.