C#实现的简单Socket通信

由于最近公司项目中关于C/S模式下消息通信,用C#的控制台写了个小例子。

一、服务器端的代码:

二、客户端的代码:

原文地址:https://www.cnblogs.com/gaojihe/p/3949841.html