Send commands from client to server in C# without using WCF
I would like to send commands to a server from a c开发者_JAVA百科lient application without have to create my own protocol or message structure. I am mainly wondering what options I have besides WCF. Does anyone have any suggestions?
Depending on the complexity of the calls, you could just use HttpWebRequest.
you could use TCPClient and TCPListener
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx
精彩评论