Commit Graph
28 Commits
Author SHA1 Message Date
Atsushi Eno e58a2c7a66 2010-01-22 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexChannelBase.cs : Receive() should rather use TryReceive().
	  It should not be in reverse order.


svn path=/trunk/mcs/; revision=150040
2010-01-22 05:00:21 +00:00
Atsushi Eno ef6042e66b 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : When received Connect() from neighbor,
	  add the peer to its internal list.
	  Finally ChatApplication got working.


svn path=/trunk/mcs/; revision=140700
2009-08-26 10:40:05 +00:00
Atsushi Eno d206a94290 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : since the channel factory is per instance,
	  do not reuse factory that is tied to different callback instance.
	  It resolved the issue that mono callback client didn't receive
	  messages from the client itself.


svn path=/trunk/mcs/; revision=140698
2009-08-26 09:51:10 +00:00
Atsushi Eno 48420dfd94 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerNode.cs : use ulong as same as Welcome message value.

	* PeerDuplexChannel.cs : in the Welcome response, return the NodeId
	  of the receiver, not the requestor. It resolved the issue that
	  .NET client didn't send further messages to mono server.


svn path=/trunk/mcs/; revision=140693
2009-08-26 07:16:25 +00:00
Atsushi Eno 0dbe067726 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : remove some comment on [MC-PRCH] behavior.
	* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs,
	  TcpReplyChannel.cs, TcpRequestChannel.cs,
	  NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs:
	  rename EndRecord handling method to appropriate one.
	  Write EndRecord from recipient too.


svn path=/trunk/mcs/; revision=140687
2009-08-26 05:00:42 +00:00
Atsushi Eno 6a08482396 2009-08-24 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : add PeerFlooder header (see comment).
	  Process PeerTo header to upgrade Message To header. Now mono
	  service accepts mono client (somehow not true for .NET client).


svn path=/trunk/mcs/; revision=140489
2009-08-24 10:13:34 +00:00
Atsushi Eno 3f9792e4f6 2009-08-24 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : fix PeerTo/PeerVia header namespace.


svn path=/trunk/mcs/; revision=140487
2009-08-24 09:53:28 +00:00
Atsushi Eno f3b27c84c8 2009-08-20 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing implementation towards get callback
	  replies on peer connector clients (not working as duplex client
	  callback is not working yet).


svn path=/trunk/mcs/; revision=140329
2009-08-20 11:32:57 +00:00
Atsushi Eno bdc678d382 2009-08-17 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing implementation. Fix wrong peer
	  destination address in Connect() request. To repeat sending
	  request, use buffered copy. Set some peer-channel specific
	  header items. (todo: and consume them.)


svn path=/trunk/mcs/; revision=140047
2009-08-17 10:06:36 +00:00
Atsushi Eno 79a9700b7a 2009-08-14 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : handle Welcome and Refuse at client side.
	  Now simply use connector contract.

	* IPeerConnectorContract.cs : remove receiver contract.


svn path=/trunk/mcs/; revision=139958
2009-08-14 18:26:50 +00:00
Atsushi Eno 5457a39916 2009-08-14 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : handle Disconnect(). Fix URLs a bit.


svn path=/trunk/mcs/; revision=139914
2009-08-14 12:42:49 +00:00
Atsushi Eno 4db580beaf 2009-08-14 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs, TcpDuplexSessionChannel.cs :
	  get local and remote address of connected counterpart to get
	  callback channel connected.
	* PeerDuplexChannel.cs : remove FIXME wrt above.


svn path=/trunk/mcs/; revision=139903
2009-08-14 10:10:48 +00:00
Atsushi Eno 36c002b7b7 2009-08-07 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : add fixme comment and remove extra FIXME.


svn path=/trunk/mcs/; revision=139553
2009-08-07 08:26:53 +00:00
Atsushi Eno 6311f336e0 2009-08-05 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing listener refactoring. Now it uses
	  ServiceHost to process neighbor connection (not sure if this is
	  right way to go though ...).


svn path=/trunk/mcs/; revision=139391
2009-08-05 06:31:23 +00:00
Atsushi Eno 586aae4f6a 2009-07-31 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing [MC-PRCH] implementation. Rewrote
	  connection part to use new internal IPeerConnectorContract for
	  neighbor connection.


svn path=/trunk/mcs/; revision=139174
2009-07-31 12:42:24 +00:00
Atsushi Eno d8ccfe78c1 2009-07-31 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : set correct message endpoint (To header).


svn path=/trunk/mcs/; revision=139148
2009-07-31 05:23:02 +00:00
Atsushi Eno df8af8990c 2009-07-31 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexChannelBase.cs : set LocalAddress property at base.


svn path=/trunk/mcs/; revision=139147
2009-07-31 05:13:36 +00:00
Atsushi Eno 4a35a807f1 2009-07-30 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing refactoring to work both as
	  listener and client. Now it creates a listening peer node, and
	  creates a set of TCP client channels for each peer in the mesh.

	  (EndpointAddress must be fixed to not filter out correct inputs).

	* PeerNode.cs : remove TCP listener creator.
	  It is now in PeerDuplexChannel.


svn path=/trunk/mcs/; revision=139059
2009-07-30 11:40:52 +00:00
Atsushi Eno 2e8709a97b 2009-07-24 Atsushi Enomoto <[email protected]>
* PeerChannelListener.cs : set source field. Remove unnecessary NIE.
	* DuplexChannelBase.cs : comment out some extra fields (so far).
	* PeerDuplexChannel.cs : pass valid EndpointAddress to PeerNodeImpl.


svn path=/trunk/mcs/; revision=138609
2009-07-24 07:09:45 +00:00
Atsushi Eno 201e82eed4 2009-07-17 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs: add the registered node itself to peer list.
	  (The messaging must be done as TCP request/reply pattern, so it's
	  not working yet.)


svn path=/trunk/mcs/; revision=138126
2009-07-17 13:47:15 +00:00
Atsushi Eno 6d5f8b6bbb 2009-07-10 Atsushi Enomoto <[email protected]>
* PeerNode.cs : significant refactoring. It does not call resolver
	  to manage the node itself but rather hold its state.

	* PeerDuplexChannel.cs : now it implements some of node management
	  functionality and Send operation. The receiver part is not yet.


svn path=/trunk/mcs/; revision=137671
2009-07-10 03:34:07 +00:00
Atsushi Eno f71a89b038 2009-07-09 Atsushi Enomoto <[email protected]>
* PeerNode.cs : some implementation cleanup before significant
	  refactoring. Mesh state is not maintained here. Use optionally
	  fixed listener address and port. Set offline status when closed.

	* PeerDuplexChannel.cs : PeerNode constructor argument changes.


svn path=/trunk/mcs/; revision=137621
2009-07-09 11:05:39 +00:00
Atsushi Eno 680c9fc67d 2009-07-08 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs, PeerChannelListener.cs, PeerOutputChannel.cs,
	  PeerInputChannel.cs, PeerChannelFactory.cs : those channels are
	  going to be unified to PeerDuplexChannel. And it is likely that
	  input and output functionalities are to be unified too.


svn path=/trunk/mcs/; revision=137535
2009-07-08 08:21:03 +00:00
Atsushi Eno ef8b4ccae4 2009-07-08 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs : (TcpChannelInfo) ease type restriction. I
	  may have to reuse it for peer transport.
	* PeerChannelListener.cs : add binding member.
	* PeerDuplexChannel.cs : remove NIE overrides. Fill fields a bit.


svn path=/trunk/mcs/; revision=137531
2009-07-08 05:13:21 +00:00
Atsushi Eno bd372ca720 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerNode.cs : if Resolve() returns no address, create a new peer
	  address here, and shut it down when it is closed.

	* PeerDuplexChannel.cs, PeerOutputChannel.cs : use new PeerNode.ctor.


svn path=/trunk/mcs/; revision=134686
2009-05-25 13:12:02 +00:00
Atsushi Eno bd4ddeac5b 2009-05-21 Atsushi Enomoto <[email protected]>
* DuplexSessionBase.cs : new file, for session implementation.
	* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexSessionChannelBase.cs : changed sync/async implementation
	  pattern. Now async methods call sync methods using delegates.


svn path=/trunk/mcs/; revision=134529
2009-05-21 12:04:59 +00:00
Atsushi Eno 1218218614 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs, PeerChannelListener.cs,
	  PeerOutputChannel.cs, PeerCustomResolverBindingElement.cs,
	  PeerChannelFactory.cs : ongoing p2p channel implementation.


svn path=/trunk/mcs/; revision=132250
2009-04-21 12:05:07 +00:00
Atsushi Eno 1f9a2160f1 ongoing PeerTransportBindingElement implementation.
svn path=/trunk/mcs/; revision=132146
2009-04-20 12:16:39 +00:00