[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ecf-dev] Datashare channels...
- From: Remy Chi Jian Suen <remy.suen@xxxxxxxxx>
- Date: Sun, 22 Mar 2009 12:53:19 -0400
- Delivered-to: firstname.lastname@example.org
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Rex1YjSQalXQtKlFm04u2wouz/xTE/TS74H3d3icpxSH2+PFiovFYtbLAjZN8isGy6 EGSjX1xbH97Xl/Nz7bluAA7C79sRsMLqqm1UEz/KoYyidkX75eESU6kM5zjEuGx2zU+e CA8by+jbI1bTRpDZO994b9HMGFpq465mc6JpE=
I'm trying to implement the datashare APIs right now and am having
The docshare code currently arbitrarily creates a channel upon
"startup". When both clients start their Eclipse, two channels are
created, one on each side. To connect to the other user, some kind of
socket connection needs to be created between the two via ServerSocket
and Socket. That's pretty straightforward, but what if there is more
than one channel?
Let's say there is a channelOne and a channelTwo on both sides. I want
to connect A's channelTwo to B's channelTwo, when A initiates a
connection request, how can the request identify itself that it wants
to connect to B's channelTwo? Actually, I guess it's not even really
possible to know that there are two channels open on B's side. B may
have other plug-ins installed and there may be 0-N channels open. What
is supposed to happen if A's channelTwo message mistakenly gets
received by B's channelOne? Am I supposed to somehow use
IChannelContainerAdapter's getChannel(ID) method for identification
purposes? But how is A supposed to even know the right ID to request?
In the docshare case, both channels are being created "at random" on
startup, ID information does not appear to be exchanged at all.
I feel like I'm missing something here since this seems to be a
problem everyone is going to hit if they trry to implement the