* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* BinaryMessageEncoder.cs : revert the previous dictionary change.
They are indeed used for non-in-band-dictionary messages.
svn path=/trunk/mcs/; revision=138496
* 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
* 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
* 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
* 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
* 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
* 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
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs : do not pass
timeout to channel constructor. it does not make sense.
svn path=/trunk/mcs/; revision=137670
* PeerChannelFactory.cs, PeerChannelListener.cs : add MessageEncoder
as common interface member, and use binary encoder (not text).
svn path=/trunk/mcs/; revision=137669
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* HttpChannelListener.cs : do not Close() more than once (though
it is allowed to call it twice, we don't reject it; just ignore).
svn path=/trunk/mcs/; revision=135977
* HttpReplyChannel.cs : reject multiple WaitForRequest calls.
Temporarily disable HTTP Keep-Alive since it somehow results in
wrong reuse of connection (shown as NRE in HttpConnection).
Make sure to close RequestContext which was created from it.
* HttpRequestContext.cs : simplify.
svn path=/trunk/mcs/; revision=135921
* HttpChannelListener.cs, TcpChannelListener.cs,
ChannelListenerBase_1.cs : put common internal listener base
and let it handle those async stuff.
svn path=/trunk/mcs/; revision=135916
* HttpReplyChannel.cs, ReplyChannelBase.cs : async operations are
now implemented as virtual in base class. Remove NIEs in http.
svn path=/trunk/mcs/; revision=135823