WCF – UDP Binding Support
Support for UDP Binding was much awaited in Windows Communication Foundation.
Reference books, you may like:Programming WCF Services: Design and Build Maintainable Service-Oriented Systems
WCF Multi-Layer Services Development with Entity Framework, 4th Edition
Learning WCF: A Hands-on Guide
TCP is connection-oriented protocol that sends message and guarantees that it’s reached destination but UDP is connectionless protocol that sends message and doesn’t look back that either it’s reached to destination or not.
In one-way operation messages, UDP protocol is required because it’s comparatively faster than TCP. Now in WCF 4.5, UDP as communication protocol is supported through UDP binding.
So, simply we can use following configuration settings using UDPBinding as follows:
<service name=“MyUDPService” behaviorConfiguration=”MyUDPServiceBehavior”>
<dns value=”localhost” />
© 2015, admin. All rights reserved.