Socket is a legacy Transmission Based on TCP/IP, mainly listen, send, receive
Starting from WebServices and remoting, We can customize methods for data transmission. WebServices can generate proxy classes, while remoting is more convenient. The server and client can use an object to solve the problem, in fact, it feels like a dynamically generated proxy class (but its core is remote object copy and remote object copy)
WCF is also a great achievement in integrating these communications. Custom methods and proxies are certainly not lost.
Core:Article)
The WCF Service depends on a running process (host). The service host specifies a host for the service. WCF is a message-based communication framework that uses an endpoint-based communication method. The endpoint consists of address, binding, and contract. For exampleFigure 3. Since the three elements should be the first letter ABC, there is an easy-to-remember formula: endpoint = ABC. An end contains all the information necessary for communication. We can understand the ABC of the end point as follows:
- Address (Address):The address determines the location of the service and solves the service addressing problem. Chapter 2nd of WCF technical analysis (Volume 1) provides a detailed introduction to the address and addressing mechanism;
- BIND (Binding):Binding implements all the details of communication, including network transmission, message encoding, and other processing of messages to implement certain functions (such as secure, reliable transmission, transactions, etc. In WCF, there are a series of system definition bindings, such as basichttpbinding, wshttpbinding, and nettcpbinding. In chapter 3rd of WCF technical analysis (Volume 1), we provide a detailed introduction to binding;
- Contract (Contract):A contract is an abstraction of service operations and a definition of the message exchange mode and message structure. Chapter 4th of WCF Technology Analysis (Volume 1) provides a detailed introduction to the service contract.