91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.73MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-15
  • 語言: C#
  • 標簽: c#??tcp/ip??

資源簡介

用C#寫的TCP_IP服務器,支持發送HEX和ASCII切換;支持接收HEX和ASCII切換

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Collections;


namespace?TCP_IP
{
????class?cMyMathClass
????{

????????public?static?ArrayList?Str16ToArrayList(string?strIn)//字符串拆分
????????{
????????????string?sParse?=?““;
????????????ArrayList?myAL?=?new?ArrayList();

????????????int?i?=?0;
????????????foreach?(char?cc?in?strIn)
????????????{
????????????????i++;
????????????????if?(cc?==?‘?‘?||?sParse.Length?==?2)
????????????????{
????????????????????myAL.Add(sParse);
????????????????????if?(sParse.Length?==?2?&&?cc?!=?‘?‘)//兩個字符
????????????????????{
????????????????????????sParse?=?Convert.ToString(cc);
????????????????????}
????????????????????else
????????????????????{
????????????????????????sParse?=?““;
????????????????????}
????????????????}
????????????????else
????????????????{
????????????????????sParse?+=?Convert.ToString(cc);
????????????????????if?(i?==?strIn.Length?&&?cc?!=?‘?‘)//末尾字符
????????????????????{
????????????????????????myAL.Add(sParse);
????????????????????}
????????????????}
????????????}
????????????return?myAL;
????????}

????????public?static?string?strAddSpace(string?strInData)//以兩個或空格問區分字符串增加空格
????????{
????????????string?strParse?=?““;
????????????string?strAddResult?=?““;
????????????int?i?=?0;
????????????foreach?(char?cc?in?strInData)
????????????{
????????????????i++;
????????????????if?(cc?==?‘?‘?||?strParse.Length?==?2)
????????????????{
????????????????????strAddResult?+=?strParse?+?“?“;
????????????????????if?(strParse.Length?==?2?&&?cc?!=?‘?‘)//兩個字符
????????????????????{
????????????????????????strParse?=?Convert.ToString(cc);
????????????????????}
????????????????????else
????????????????????{
????????????????????????strParse?=?““;
????????????????????}
????????????????}
????????????????else
????????????????{
????????????????????strParse?+=?Convert.ToString(cc);
????????????????}
????????????????if?(i?==?strInData.Length?&&?cc?!=?‘?‘)//末尾字符
????????????????{
????????????????????strAddResult?+=?strParse;
????????????????}

????????????}

????????????return?strAddResult;

????????}

????????public?static?string?strSubSpace(string?strInData)//去除字符串中空格并把單個字符串前面加0
????????{
????????????string?strParse?=?“?“?+?strInData?+?“?“;//將頭和尾組合成一樣的形式
????????????string?strParseTemp?=?““;
????????????string?strSubResult?=?““;
????????????//int?i?=?0;

????????????for?(int?i?=?0;?i?????????????{
????????????????//char?myChar
????????????????/*if?((i?==?0)?&&?(strParse[1]==‘?‘))
????????????????{
????????????????????strParseTemp?=?“0“?+?strParse[0].ToString();
????????????????????strSubResult?+=?strParseTemp;
????????????????}
????????????????else*/
????????????????if?((i?>?0)?&&?(i?????????????????{
????????????????????if?((strParse[i]?!=?‘?‘)?&&?(strParse[i?-?1]?==?‘?‘)?&&?(strParse[i?+?1]?==?‘?‘))
????????????????????{

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-08-09?11:23??2、TCP_IP_Sever\
?????目錄???????????0??2018-08-09?11:23??2、TCP_IP_Sever\TCP_IP\
?????目錄???????????0??2018-08-09?11:23??2、TCP_IP_Sever\TCP_IP\TCP_IP\
?????文件???????27046??2018-06-12?11:12??2、TCP_IP_Sever\TCP_IP\TCP_IP\Form1.Designer.cs
?????文件???????23907??2018-06-26?10:53??2、TCP_IP_Sever\TCP_IP\TCP_IP\Form1.cs
?????文件????????6215??2018-06-12?11:12??2、TCP_IP_Sever\TCP_IP\TCP_IP\Form1.resx
?????文件????????8780??2018-06-12?13:07??2、TCP_IP_Sever\TCP_IP\TCP_IP\MyTcpServer.cs
?????文件?????????487??2018-05-25?14:21??2、TCP_IP_Sever\TCP_IP\TCP_IP\Program.cs
?????目錄???????????0??2018-08-09?11:23??2、TCP_IP_Sever\TCP_IP\TCP_IP\Properties\
?????文件????????1362??2018-05-25?14:21??2、TCP_IP_Sever\TCP_IP\TCP_IP\Properties\AssemblyInfo.cs
?????文件????????4306??2018-05-25?14:35??2、TCP_IP_Sever\TCP_IP\TCP_IP\Properties\Resources.Designer.cs
?????文件????????6897??2018-05-25?14:35??2、TCP_IP_Sever\TCP_IP\TCP_IP\Properties\Resources.resx
?????文件????????1093??2018-05-25?14:21??2、TCP_IP_Sever\TCP_IP\TCP_IP\Properties\Settings.Designer.cs
?????文件?????????249??2018-05-25?14:21??2、TCP_IP_Sever\TCP_IP\TCP_IP\Properties\Settings.settings
?????文件????????4173??2018-06-06?14:12??2、TCP_IP_Sever\TCP_IP\TCP_IP\TCP_IP.csproj
?????目錄???????????0??2018-08-09?11:23??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\
?????目錄???????????0??2018-08-09?11:23??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Debug\
?????文件????????7814??2017-02-26?19:26??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Debug\1.jpg
?????文件??????262395??2017-02-26?19:28??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Debug\2.jpg
?????文件??????365056??2018-06-26?10:53??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Debug\TCP_IP.exe
?????文件???????67072??2018-06-26?10:53??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Debug\TCP_IP.pdb
?????文件???????11600??2018-06-26?10:53??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Debug\TCP_IP.vshost.exe
?????文件?????????490??2009-08-31?00:40??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Debug\TCP_IP.vshost.exe.manifest
?????文件???????21065??2017-02-27?13:22??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Debug\green.png
?????文件???????17187??2017-02-27?13:22??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Debug\red.png
?????目錄???????????0??2018-08-09?11:23??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Release\
?????文件????????7814??2017-02-26?19:26??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Release\1.jpg
?????文件??????262395??2017-02-26?19:28??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Release\2.jpg
?????文件??????363520??2018-06-26?10:53??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Release\TCP_IP.exe
?????文件???????65024??2018-06-26?10:53??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Release\TCP_IP.pdb
?????文件???????11600??2018-07-31?08:36??2、TCP_IP_Sever\TCP_IP\TCP_IP\bin\Release\TCP_IP.vshost.exe
............此處省略37個文件信息

評論

共有 條評論