WCF和网络之间的区别 [英] Difference between WCFand Network

查看:109
本文介绍了WCF和网络之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

请仅用一些词来描述WCF和c#网络编程的区别.他们是怎么想的.很好地学习WCF可以说我的网络编程还可以.
感谢

hello,

Please describe just with some words differnce WCF and c# network programming.Do are they the same thinks.Learning WCF well can I say that my network programming is ok.
Thanks

推荐答案

WCF在某种意义上是指套接字编程中具有各种选项和功能的API的集合.

C#网络编程通常称为套接字编程.套接字是将IP地址和端口组合为单个标识的地址.当应用程序创建套接字时,操作系统通过从IP中提取套接字地址信息来将传入的IP数据包转发到相应的应用程序或服务进程.
因此,WCF在基本级别上几乎是相同的,只是WCF几乎没有实现任何东西.就像-协议已经确定(通过请求/响应消息传递),最低级别的传输详细信息已经实现,安全功能已经存在.您只需要选择和配置它即可.

使用套接字编程,您将需要做更多的工作,但是可能会更快.必须实现自己的协议的创建,消息的序列化方式等.


因此,学习WCF就像您对网络编程有所了解一样.
WCF in a sense is a collection of APIs over the socket programming with various options and feature.

C# Network programming generally is referred to as Socket Programming. A socket is an address that combines an IP address and a port into a single identity. When an application creates a socket, the operating system forwards incoming IP packets to the corresponding application or service process by extracting the socket address information from the IP.

Thus WCF is almost same at the base level, it''s just that with WCF, few things are already implemented. Like - the protocol is already figured out (via request/response message passing), lowest level transport details are already implemented, security features are already there. You just need to choose and configure it.

With socket programming you will require much more work but potentially it will be faster. Creation of own protocol, how messages will be serialized, etc has to be implemented.


Thus, Learning WCF can be referred as you know network programming somewhat.


这篇关于WCF和网络之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆