开发者

How to create socket (Binary) server with WCF?

开发者 https://www.devze.com 2022-12-10 11:38 出处:网络
How to create socket-based ( Binary Socket) WCF server server with WCF, C#? What do I need? I need - Open Source Libs

How to create socket-based ( Binary Socket) WCF server server with WCF, C#? What do I need? I need -


Why would you do such a thing? WCF is targeting a much higher abstraction level: You write a service and a client, the communication between those two is secondary but always message based. Your question is somehow analogue to "How can I use C# to write assembler code?" ;-)

However, since WCF offers multiple extension points you could probably hook into the layers where the bytes are taken from the wire and do something there. In the description of the stack over at Nicholas Allen's blog you are probably interested in bullet 5 or 6.

By the way, this blog is quite useful for the WCF developer. Nicholas Allen is one of the designers of the WCF at Microsoft. For further reading I recommend "Programming WCF Services" by Juval Löwy.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号