Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] How to create a new channel

Hi Lucas,

On 9/15/2010 12:16 PM, Lucas Augusto Scotta Merlo wrote:
Hello everybody.
I'm finishing a project for my theses's: one extension of ECF for NCL(language of Brazilian Digital TV). In mine extension we include a lock feature (lock) on the elements. To do this we create a message type specifies to be treated on the other side. Then this message's lock is sent to other user by channel.sendMessage(DocShare.getOtherID(), msg.serializeMsgLock());
To obtain the channel, we create a "static object DocShare docShareNCL at DocShare class, then we use in other class: DocShare.docshare.getChannel();
Yet the message is not being treated across the OT and only by our methods of blocking. We use the same listener for OT e lock;
We can have only one listener per channel? How I create one new channel?
So thanks.

Although this sounds fascinating, I don't quite understand what you are trying to accomplish and so it's not immediately clear to me what mechanism you need here...e.g.  would you like to use the *existing* DocShare channel to send your own message (so that the delivery order of your message relative to other docshare messages) is consistent (because channels are sender ordered...i.e. the order that the messages on a given channel are received is the same as the order that they are sent.  This is only true for a single channel...if messages are sent on different channels then the delivery order is not guaranteed.

So by modifying the code that uses the DocShare created channel you can insert your own message in the docshare/OT message stream...or you can create/use a separate channel, but the delivery order of your message on this second channel will not be related to the order of messages received on the DocShare channel.  If you do want a second asynchronous channel, you can create a second channel by using the IChannelContainerAdapter.createChannel(...).  The DocShare code does this to create/setup it's channel.

Also...it would be great if you would describe your thesis work a little further on this list...and if you wish it might be good for you to get involved with the current effort on the creation of a wave provider (which also uses operational transformation)...i.e. see [1].

Thanks,

Scott

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=280347



Lucas Scotta

---------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Lucas Augusto Scotta Merlo
MSc in Computer - UFES
http://www.inf.ufes.br/~scotta/
_______________________________________________ ecf-dev mailing list ecf-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/ecf-dev


Back to the top