C#TCP客户端服务器 [英] C# TCP client server
本文介绍了C#TCP客户端服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
i想在同一台电脑上使用我的tcp服务器和客户端。
可以吗?
我尝试了什么:
没什么特别的
创建代码
测试相同的pc
解决方案
这是一篇关于C#5中的客户端/服务器应用程序的好文章:
使用本机.NET TCP库创建服务器/客户端应用程序 [ ^ ]
正如作者所说:
Quote:请注意,我将使用循环返回地址(127.0.0.1)和示例端口号(1234),因为我将使用自己的机器充当服务器和客户端。
Hello,
i want to use my tcp server and client in same pc.
does it possible?
What I have tried:
nothing special
creating code
testing same pc
解决方案
Here is a good article about a Client / Server application in C#5:
Creating a server/client application using native .NET TCP library[^]
As the author says:
Quote:Note that I would use loop back address (127.0.0.1) and a sample port number (1234) because I am going to use my own machine to act as server and client.
这篇关于C#TCP客户端服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文