資源簡介
純原生websocket聊天室
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Text.Regularexpressions;
namespace?ClientSocket
{
class?Program
{
static?void?Main(string[]?args)
{
Regex?reg?=?new?Regex?(@“{<(.*?)>}“);
string?name?=?“{}“;
Match?m?=?reg.Match?(name);
if?(m.Groups.Count?!=?0)?{
name?=?Regex.Replace?(m.Value?@“{<(.*?)>}“?“$1“);
}
Console.WriteLine?(name);
}
}
}
- 上一篇:S7協議連接(C#版)
- 下一篇:Remoting通信例程(附服務器端以及客戶端)
評論
共有 條評論