• 大小: 50KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-11
  • 语言: C#
  • 标签: c#  tcpserver  csharp  tcp  server  

资源简介

TCP 接收端程序,可以同时侦听多个客户端。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Runtime;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Collections;

namespace TCPServer
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();

            Control.CheckForIllegalCrossThreadCalls = false;
            listener = new TcpListener(IPAddress.Any 4001);
            start = new ThreadStart(startListen);
            listenThread = new Thread(start);
            //listenThread.Start();
        }

        private ThreadStart start;
        private Thread listenT

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5612  2010-08-11 10:32  TCPServer\Properties\Resources.resx

     文件        249  2010-08-11 10:32  TCPServer\Properties\Settings.settings

     文件       1290  2010-08-11 10:32  TCPServer\Properties\AssemblyInfo.cs

     文件       2847  2010-08-11 10:32  TCPServer\Properties\Resources.Designer.cs

     文件       1094  2010-08-11 10:32  TCPServer\Properties\Settings.Designer.cs

     文件       8128  2010-08-12 11:48  TCPServer\MainForm.cs

     文件       2238  2010-08-11 15:47  TCPServer\rose.ico

     文件      16852  2010-08-11 15:48  TCPServer\MainForm.Designer.cs

     文件       3356  2010-08-11 15:47  TCPServer\TCPServer.csproj

     文件       5632  2005-09-23 06:56  TCPServer\bin\Debug\TCPServer.vshost.exe

     文件      32768  2010-08-12 11:50  TCPServer\bin\Debug\TCPServer.exe

     文件      32256  2010-08-12 11:50  TCPServer\bin\Debug\TCPServer.pdb

     文件        135  2010-08-11 18:05  TCPServer\bin\Debug\Text.txt

     文件       2804  2010-08-11 15:48  TCPServer\obj\Debug\TCPServer.MainForm.resources

     文件        180  2010-08-11 10:39  TCPServer\obj\Debug\TCPServer.Properties.Resources.resources

     文件      32768  2010-08-12 11:50  TCPServer\obj\Debug\TCPServer.exe

     文件        845  2010-08-11 15:48  TCPServer\obj\Debug\TCPServer.csproj.GenerateResource.Cache

     文件      32256  2010-08-12 11:50  TCPServer\obj\Debug\TCPServer.pdb

     文件        485  2010-08-12 11:57  TCPServer\obj\TCPServer.csproj.FileListAbsolute.txt

     文件       9668  2010-08-11 15:48  TCPServer\MainForm.resx

     文件        906  2010-08-11 10:32  TCPServer\TCPServer.sln

    ..A..H.     12288  2010-08-12 11:57  TCPServer\TCPServer.suo

     文件        482  2010-08-11 10:33  TCPServer\Program.cs

     目录          0  2010-08-11 10:32  TCPServer\obj\Debug\TempPE

     目录          0  2010-08-11 10:33  TCPServer\obj\Debug\Refactor

     目录          0  2010-08-11 10:32  TCPServer\bin\Debug

     目录          0  2010-08-11 10:32  TCPServer\obj\Debug

     目录          0  2010-08-11 10:32  TCPServer\Properties

     目录          0  2010-08-11 10:32  TCPServer\bin

     目录          0  2010-08-11 10:32  TCPServer\obj

............此处省略4个文件信息

评论

共有 条评论