I would like to be able to both host and connect to a vanilla sockets server via WCF, within the hosting framework I am devising. I want to be able to use WC
It is possible to create custom transports in WCF. It's quite involved though!
Roman Kiss has built a Null Transport that allows you to consume and host the services from within the same process without the overhead of marshalling the data through one of the built in transports. His CodePlex article is available at:
http://www.codeproject.com/KB/WCF/NullTransportForWCF.aspx
It may be a good starting point for helping you learn how to build your own transport. Good luck!
I am not aware of custom transport channels. I think as per my experiance, it may not possible to make the WcfTestClient work for custom transport channels.