if (obj == null) System.Console.WriteLine("Could not locate server"); else if (obj.SetString("Sending String to Server")) System.Console.WriteLine("Success: Check the other console to verify."); else System.Console.WriteLine("Sending the test string has failed."); System.Console.WriteLine("Hit <enter> to exit..."); System.Console.ReadLine(); } catch (Exception exp) { Console.WriteLine(exp.StackTrace); } } } } 编译服务器代码 csc csc /out:MyServer.exe MyServer.cs 编译客户端代码 csc /r:MyServer.exe MyClient.cs 启动服务器c:\>start MyServer 启动客户端c:\>MyClient |
闁衡偓閹増顥戦柟瀛樺姇婵拷闁哄被鍎冲﹢鍛村绩閹増顥�>>
0正在阅读:轻松架起远程C-S体系轻松架起远程C-S体系
2004-04-19 10:35
出处:CSDN
责任编辑:sdq
键盘也能翻页,试试“← →”键