简易C# socket
2018-06-21 15:17
369 查看
服务器
using System; namespace Client { class Program { public static string inputValue; static void Main(string[] args) { Socket_Client client = new Socket_Client(); client.Init("127.0.0.1", 88); client.Connection(); while (inputValue != "Exit") { inputValue = Console.ReadLine(); client.SendMessage(inputValue); if (inputValue == "Close") { client.Close(); } } } } }View Code
相关文章推荐
- C#简易版Socket聊天室 附源码
- C# Socket简单例子(服务器与客户端通信)
- C#第二次作业:用c#语言写一个简易的记事本和图片随机显示
- 在C#中实现Socket端口复用
- python3+socket搭建简易服务器
- C# 多线程学习(三)Socket 服务器与客户端通信
- [置顶] 【C#】 Socket通讯客户端程序
- C#的Socket程序(TCP)
- C# ping操作,MSDN版(不是socket自己写值的版本)
- C#异步的Socket通信(重构局域网聊天小工具) [转]
- C#的Socket实现UDP协议通信
- Unity3D研究院之C#使用Socket与HTTP连接服务器传输数据包
- c#Socket通信入门实例
- socket.io简易教程(群聊,发送图片,分组,私聊)
- 使用 C# 编写简易 ASP.NET Web 服务器
- C#中Socket编程解决应用程序直接的通信
- C# socket nat 映射 网络 代理 转发
- 一个简易的聊天程序(Socket)
- [分享] C# 中 Socket 进行数据接收的一点心得