C# 协助设置客户端和服务器

C# 协助设置客户端和服务器,c#,frameworks,client-server,communication,xml-rpc,C#,Frameworks,Client Server,Communication,Xml Rpc,可能是一个简单的问题,但在网上找不到帮助。我已经用c#编写了一个checkers应用程序,并尝试使用xmlrpc.net版本2.5建立连接,以便一个用户(客户端)可以键入另一台计算机(服务器)的ip地址,并能够来回发送消息以更新线路板更改 这是我要做的一些伪代码 public void startConnecting() { //set up xml-rpc to connect to specified ip address //if successful start th

可能是一个简单的问题,但在网上找不到帮助。我已经用c#编写了一个checkers应用程序,并尝试使用xmlrpc.net版本2.5建立连接,以便一个用户(客户端)可以键入另一台计算机(服务器)的ip地址,并能够来回发送消息以更新线路板更改

这是我要做的一些伪代码

public void startConnecting()
{
    //set up xml-rpc to connect to specified ip address


    //if successful start the game
    //start a receive message thread
    //sendMsg(name);

}
private void button1_Click(object sender, EventArgs e)
    //start the search for the ip address stored in textBox2
{
   name = textBox1.Text;
   startConnecting();
}
public void sendMsg(string s)
{
   while (true)
   //send msg
 }

出于兴趣:为什么选择xml rpc而不是WCF?请不要在标题前加上“xml-rpc.NET C#”之类的前缀。这就是标签的用途。出于兴趣:为什么选择xml rpc而不是WCF?请不要在标题前加上“xml-rpc.NET C#”之类的前缀。这就是标签的用途。