资源简介


资源截图

代码片段和文件信息

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

using System.Net;
using System.Net.Sockets;
using System.Threading;

namespace cccc_ConsoleClient_1
{
    class Program
    {
        private static byte[] result = new byte[1024];



        static void Main(string[] args)
        {
            //绑定服务器IP地址
            IPAddress ip = IPAddress.Parse(“192.168.1.7“);
            Socket clientSocket = new Socket(AddressFamily.InterNetwork SocketType.Stream ProtocolType.Tcp);

            try
            {
                clientSocket.Connect(new IPEndPoint(ip 1900));
                Console.WriteLine(“连接服务器成功“);
                //通过clientSocket接受数据
                int num = clientSocket.Receive(result);
                Consol

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-04-16 22:03  ConsoleClient\
     目录           0  2019-04-16 22:03  ConsoleClient\.vs\
     目录           0  2019-04-16 22:25  ConsoleClient\.vs\ConsoleClient\
     目录           0  2019-04-16 22:25  ConsoleClient\.vs\ConsoleClient\DesignTimeBuild\
     文件         236  2019-04-16 22:25  ConsoleClient\.vs\ConsoleClient\DesignTimeBuild\.dtbcache
     目录           0  2019-04-16 22:03  ConsoleClient\.vs\ConsoleClient\v15\
     文件       43520  2019-04-16 22:25  ConsoleClient\.vs\ConsoleClient\v15\.suo
     目录           0  2019-04-16 22:03  ConsoleClient\.vs\ConsoleClient\v15\Server\
     目录           0  2019-04-16 22:03  ConsoleClient\.vs\ConsoleClient\v15\Server\sqlite3\
     文件           0  2019-04-16 22:03  ConsoleClient\.vs\ConsoleClient\v15\Server\sqlite3\db.lock
     文件        4096  2019-04-16 22:03  ConsoleClient\.vs\ConsoleClient\v15\Server\sqlite3\storage.ide
     文件       32768  2019-04-16 22:03  ConsoleClient\.vs\ConsoleClient\v15\Server\sqlite3\storage.ide-shm
     文件      622152  2019-04-16 22:05  ConsoleClient\.vs\ConsoleClient\v15\Server\sqlite3\storage.ide-wal
     目录           0  2019-04-16 22:05  ConsoleClient\ConsoleClient\
     文件         189  2018-09-06 19:21  ConsoleClient\ConsoleClient\App.config
     文件        2569  2018-09-06 19:21  ConsoleClient\ConsoleClient\ConsoleClient.csproj
     文件        1948  2019-04-16 22:05  ConsoleClient\ConsoleClient\Program.cs
     目录           0  2018-10-10 16:41  ConsoleClient\ConsoleClient\Properties\
     文件        1346  2018-09-06 19:21  ConsoleClient\ConsoleClient\Properties\AssemblyInfo.cs
     目录           0  2018-10-10 16:41  ConsoleClient\ConsoleClient\bin\
     目录           0  2018-10-10 16:41  ConsoleClient\ConsoleClient\bin\Debug\
     文件        6144  2019-04-16 22:05  ConsoleClient\ConsoleClient\bin\Debug\ConsoleClient.exe
     文件         189  2018-09-06 19:21  ConsoleClient\ConsoleClient\bin\Debug\ConsoleClient.exe.config
     文件       13824  2019-04-16 22:05  ConsoleClient\ConsoleClient\bin\Debug\ConsoleClient.pdb
     文件       22984  2018-11-07 08:57  ConsoleClient\ConsoleClient\bin\Debug\ConsoleClient.vshost.exe
     文件         189  2018-09-06 19:21  ConsoleClient\ConsoleClient\bin\Debug\ConsoleClient.vshost.exe.config
     文件         490  2016-07-16 19:44  ConsoleClient\ConsoleClient\bin\Debug\ConsoleClient.vshost.exe.manifest
     目录           0  2018-10-10 16:41  ConsoleClient\ConsoleClient\obj\
     目录           0  2019-04-16 22:03  ConsoleClient\ConsoleClient\obj\Debug\
     文件          42  2019-04-16 22:03  ConsoleClient\ConsoleClient\obj\Debug\ConsoleClient.csproj.CoreCompileInputs.cache
     文件        2043  2019-04-16 22:04  ConsoleClient\ConsoleClient\obj\Debug\ConsoleClient.csproj.FileListAbsolute.txt
............此处省略53个文件信息

评论

共有 条评论