Lamloumi Afif
Lamloumi Afif

Reputation: 33

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

Upvotes: 3

Views: 2230

Answers (2)

AlexTheo
AlexTheo

Reputation: 4184

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

Upvotes: 2

OJ.
OJ.

Reputation: 29399

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.

Upvotes: 4

Related Questions