Commit Graph
133 Commits
Author SHA1 Message Date
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 255030c77a 2009-08-14 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs : do not try to compare dead connection's
	  IPEndPoint (it raises an error).


svn path=/trunk/mcs/; revision=139912
2009-08-14 12:37:01 +00:00
Atsushi Eno ee14a754ea 2009-08-14 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : allow null header value on each specific setter.


svn path=/trunk/mcs/; revision=139910
2009-08-14 12:34:15 +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 0b580f7a17 2009-08-07 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : fill IsReferenceParameter.


svn path=/trunk/mcs/; revision=139539
2009-08-07 02:47:01 +00:00
Atsushi Eno bbe1510f77 2009-08-06 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, TcpReplyChannel.cs, HttpReplyChannel.cs:
	  implement remaining async methods and LocalAddress.


svn path=/trunk/mcs/; revision=139466
2009-08-06 11:41:46 +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 81a4201cfe 2009-07-31 Atsushi Enomoto <[email protected]>
* ChannelListenerBase_1.cs, TcpChannelListener.cs,
	  PeerChannelListener.cs, HttpChannelListener.cs :
	  support ListenUri accordingly too so that it could be used when
	  it is different from LocalAddress.Uri.


svn path=/trunk/mcs/; revision=139171
2009-07-31 12:27:07 +00:00
Atsushi Eno 479ce8b9a0 2009-07-31 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs, TcpDuplexSessionChannel.cs,
	  TcpRequestChannel.cs : use Via uri to validate and connect.


svn path=/trunk/mcs/; revision=139162
2009-07-31 11:46:23 +00:00
Atsushi Eno 6940bbad21 2009-07-31 Atsushi Enomoto <[email protected]>
* RequestChannelBase.cs, DuplexChannelBase.cs :
	  Return endpoint address Uri when no explicit Via uri is specified.
	* ChannelFactoryBase.cs : Remove extra async close methods.
	  Add async open methods. Reject null EndpointAddress.
	* PeerChannelFactory.cs : remove async open methods (now in base).


svn path=/trunk/mcs/; revision=139160
2009-07-31 11:40:39 +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 9915ebcd27 2009-07-30 Atsushi Enomoto <[email protected]>
* PeerChannelListener.cs : do not accept more than one channel
	  which results in lots of listening peer node. Only one is enough.


svn path=/trunk/mcs/; revision=139058
2009-07-30 11:35:23 +00:00
Atsushi Eno 311d3c0e86 2009-07-30 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs : fix wrong loop implementation.


svn path=/trunk/mcs/; revision=139033
2009-07-30 07:49:45 +00:00
Atsushi Eno d50ee44924 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs : to avoid creating two or more channels
	  for one remote endpoint, check existing remote endpoints and
	  ignore such connections (it must be handled in different thread
	  fired by ChannelDispatcher loop).

	* ChannelDispatcher.cs : move Open() inside acceptor lock, so that
	  the channel does not have to be fired Receive() before Open().


svn path=/trunk/mcs/; revision=138986
2009-07-29 19:02:40 +00:00
Atsushi Eno 637dfea50e 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs : make sure to not try to receive request when
	  it is already closed.


svn path=/trunk/mcs/; revision=138928
2009-07-29 09:48:15 +00:00
Atsushi Eno a73150931d 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
	  some mannerless clients [*1] do not send EndRecord accordingly, but
	  such channels at listener side should not be kept open. So, close
	  disconnected channels when the listener needs to accept another
	  one.
	  [*1] see olive/samples/wcf/clientbase/samplecli4.cs.


svn path=/trunk/mcs/; revision=138923
2009-07-29 08:39:22 +00:00
Atsushi Eno 9680fe4fc6 2009-07-28 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs :
	  Remove extra NIE overrides.
	  Implement OnAbort() apart from OnClose().
	  For duplex session channel, unlike reply channel, it must acquire
	  TCP connection before OnOpen(), otherwise ChannelDispatcher
	  releases the connection acceptance WaitHandle and the detected
	  live connection may be stolen by another channel acceptor.


svn path=/trunk/mcs/; revision=138915
2009-07-29 05:26:39 +00:00
Atsushi Eno db61e675d7 2009-07-28 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : implement OnAbort().


svn path=/trunk/mcs/; revision=138839
2009-07-28 14:38:17 +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 1651ce46f8 2009-07-24 Atsushi Enomoto <[email protected]>
* ChannelFactory.cs: add some null checks.

	* PeerCustomResolverBindingElement.cs : add some null checks.


svn path=/trunk/mcs/; revision=138604
2009-07-24 05:36:10 +00:00
Atsushi Eno e4dc971355 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpReplyChannel.cs, TcpRequestChannel.cs:
	  Acquire TcpClient for each request/reply. Now it is fully
	  interoperable with .NET.


svn path=/trunk/mcs/; revision=138501
2009-07-23 07:21:16 +00:00
Atsushi Eno 1ce9d1db36 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs, TcpRequestChannel.cs: it somehow adds/expects
	  ReplyTo and MessageId (though it is session-less), and it expects
	  EndRecord at weird stage, inconsistent with [MC-NMF]...
	  Now .NET service accepts one mono client request.


svn path=/trunk/mcs/; revision=138499
2009-07-23 06:31:30 +00:00
Atsushi Eno 899a95c371 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs, TcpRequestChannel.cs, TcpBinaryFrameManager.cs:
	  Send and receive unsized message terminator at once.
	  Send EndRecord mutually. Got one .net client request working.


svn path=/trunk/mcs/; revision=138498
2009-07-23 05:38:17 +00:00
Atsushi Eno 8eb2e41c66 2009-07-23 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : revert the previous dictionary change.
	  They are indeed used for non-in-band-dictionary messages.


svn path=/trunk/mcs/; revision=138496
2009-07-23 05:05:21 +00:00
Atsushi Eno 3c099af375 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs:
	  split out binary frame manager class into separate file.

	* System.ServiceModel.dll.sources:
	  split out binary frame manager class into separate file.


svn path=/trunk/mcs/; revision=138489
2009-07-23 03:02:29 +00:00
Atsushi Eno 300441d742 2009-07-21 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs : new reply channel implementation.
	* TcpChannelListener.cs : use above for streamed reply channel.
	* TcpDuplexSessionChannel.cs : more streaming mode support.
	* TcpRequestChannel.cs : a couple of updates to get it working
	  with the reply channel above. Still some issues on .NET interop.

	* System.ServiceModel.dll.sources: add TcpReplyChannel.


svn path=/trunk/mcs/; revision=138299
2009-07-21 14:13:06 +00:00
Atsushi Eno 02914de861 2009-07-21 Atsushi Enomoto <[email protected]>
* RequestContext.cs : added internal derived class that implements
	  some members.


svn path=/trunk/mcs/; revision=138298
2009-07-21 14:05:37 +00:00
Atsushi Eno 6160165eb4 2009-07-21 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : for non-session reader and writer, do not
	  use dictionary.


svn path=/trunk/mcs/; revision=138297
2009-07-21 14:03:17 +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 b10ae22317 2009-07-17 Atsushi Enomoto <[email protected]>
* TcpRequestChannel.cs : new channel file (TCP for request/reply
	  messaging pattern). The messaging part is not working yet.
	* TcpChannelFactory.cs : support IRequestChannel.
	* TcpDuplexSessionChannel.cs : add unsized message support.

	* System.ServiceModel.dll.sources: add TcpRequestChannel.


svn path=/trunk/mcs/; revision=138125
2009-07-17 13:45:19 +00:00
Atsushi Eno 25e1fd20dc 2009-07-17 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs, RequestChannelBase.cs :
	  A couple of async members are now implemented in the base class.
	  Ditto for EndpointAddress and Via.


svn path=/trunk/mcs/; revision=138122
2009-07-17 12:48:45 +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 2964b69e86 2009-07-10 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs : do not pass
	  timeout to channel constructor. it does not make sense.


svn path=/trunk/mcs/; revision=137670
2009-07-10 03:30:17 +00:00
Atsushi Eno b4af91a324 2009-07-10 Atsushi Enomoto <[email protected]>
* PeerChannelFactory.cs, PeerChannelListener.cs : add MessageEncoder
	  as common interface member, and use binary encoder (not text).


svn path=/trunk/mcs/; revision=137669
2009-07-10 03:27:56 +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 09f0a1b008 2009-07-08 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs, HttpChannelFactory.cs,
	  PeerChannelFactory.cs : close opened channels at OnClose() as
	  documented. Implement async methods.
	* PeerChannelListener.cs : removed some NIE overrides.


svn path=/trunk/mcs/; revision=137528
2009-07-08 01:00:32 +00:00
Atsushi Eno 3e8b32b52e 2009-07-02 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs : some more async methods.


svn path=/trunk/mcs/; revision=137292
2009-07-02 13:05:39 +00:00
Atsushi Eno 166e408ef7 2009-06-29 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : do not iterate extra channel acceptance
	  and hence close channels a bit more gracefully.

	* TcpDuplexSessionChannel.cs : on Abort(), do just Close() within
	  (almost) no time.
	* TcpChannelListener.cs : accept multiple channels at a time.


svn path=/trunk/mcs/; revision=137093
2009-06-29 17:08:50 +00:00
Atsushi Eno 04bfdda5dd 2009-06-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : do not output all (stored) writer
	  session strings but output only those new ones in current message.
	  This fixes inconsistent body output in repetitive use of sender.


svn path=/trunk/mcs/; revision=137060
2009-06-29 06:07:28 +00:00
Atsushi Eno 4088935212 2009-06-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : handle EndRecord for repetitive
	  operation that does not involve session.
	  Preserve writer session as well as reader session.
	* MessageHeaders.cs : take name and namespace into consideration
	  when creating a serializer.


svn path=/trunk/mcs/; revision=136975
2009-06-26 15:44:16 +00:00
Atsushi Eno e9dbae90d2 2009-06-25 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
	  Made required changes for repeated use of message exchanges.
	  Hold binary reader session. The channels use it incrementally.
	  Preambles are handled at Open, and EndRecords are handled at
	  Close, Add session shutdown hook here (not working yet though).


svn path=/trunk/mcs/; revision=136867
2009-06-25 18:41:52 +00:00
Atsushi Eno 26e7cc7e0b 2009-06-18 Atsushi Enomoto <[email protected]>
* ChannelListenerBase_1.cs : added cancellation hook here too.
	  HttpChannelListener.cs : use above.
	  Do not allow parallel channel creation (this listener does not
	  allow more than one AcceptChannel().


svn path=/trunk/mcs/; revision=136425
2009-06-18 17:44:02 +00:00
Atsushi Eno 29d6585f14 2009-06-18 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, HttpReplyChannel.cs :
	  Add cancellation hook for async TryReceiveRequest.


svn path=/trunk/mcs/; revision=136407
2009-06-18 14:16:07 +00:00