简体   繁体   中英

Socket vs Wcf communication

Did Wcf replace socket? for client server application i need that client send some messages to server and the server can do the same thing without waiting request from any client. So can i do this or wcf can only expose many services that client need and the communication can't be interactif and bidirectionnal? thanks

Do you want the connection to be persistant? If so then this doesn't sound like a good case for WCF. Perhaps take a look at something like ZeroMQ instead.

Wcf will never replace the sockets. The WCF just implements some concrete protocols over the TCP so if you need something else like IP or even UDP you still need to use the sockets.

If you need a stable TCP connection you still need a socket. Also this discussion could be helpful for you. http://forums.silverlight.net/t/17502.aspx/2/10

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM