资源简介

Socket编程 多线程程序 服务器与客户端程序

资源截图

代码片段和文件信息

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

namespace Client_Test
{
    public partial class MainForm : Form
    {
        /// 
        /// 服务器程序使用的端口,默认为6666
        /// 

        private Int32 _port = 6666;

        /// 
        /// 接收数据缓冲区大小1K 
        /// 

        private const Int32 _maxPacket = 1024;

        /// 
        /// 服务器端的监听器
        /// 

        private TcpListener _tcpl = null;

        Bo

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

     文件     358400  2009-04-18 11:45  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\bin\Debug\Client_Test.exe

     文件      36352  2009-04-18 11:45  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\bin\Debug\Client_Test.pdb

     文件      14328  2010-09-24 09:05  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\bin\Debug\Client_Test.vshost.exe

     文件        490  2007-07-21 01:33  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\bin\Debug\Client_Test.vshost.exe.manifest

     目录          0  2010-09-30 14:57  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\bin\Debug

     目录          0  2010-09-30 14:57  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\bin

     文件      67646  2009-04-17 14:32  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\C.ico

     文件       4002  2009-04-17 17:34  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\Client_Test.csproj

     文件      13577  2009-04-18 11:45  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\MainForm.cs

     文件       9500  2009-04-17 15:28  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\MainForm.Designer.cs

     文件     209617  2009-04-17 15:28  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\MainForm.resx

     文件       1642  2010-09-24 09:05  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj\Debug\Client_Test.csproj.FileListAbsolute.txt

     文件        914  2009-04-18 11:45  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj\Debug\Client_Test.csproj.GenerateResource.Cache

     文件     358400  2009-04-18 11:45  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj\Debug\Client_Test.exe

     文件     136148  2009-04-18 11:45  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj\Debug\Client_Test.MainForm.resources

     文件      36352  2009-04-18 11:45  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj\Debug\Client_Test.pdb

     文件        180  2009-04-18 11:45  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj\Debug\Client_Test.Properties.Resources.resources

     文件        180  2009-04-18 11:45  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj\Debug\Client_Test.ShowMessage.resources

     目录          0  2010-09-30 14:57  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj\Debug\Refactor

     目录          0  2010-09-30 14:57  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj\Debug\TempPE

     目录          0  2010-09-30 14:57  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj\Debug

     目录          0  2010-09-30 14:57  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\obj

     文件        475  2009-04-17 18:06  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\Program.cs

     文件       1366  2009-04-15 18:28  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\Properties\AssemblyInfo.cs

     文件       2872  2009-04-15 17:29  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\Properties\Resources.Designer.cs

     文件       5612  2009-04-15 17:29  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\Properties\Resources.resx

     文件       1096  2009-04-15 17:29  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\Properties\Settings.Designer.cs

     文件        249  2009-04-15 17:29  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\Properties\Settings.settings

     目录          0  2010-09-30 14:57  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\Properties

     文件       1026  2009-04-18 10:28  multiSocket\multi-threadedSocket\Socket\Client_Test\Client_Test\ShowMessage.cs

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

评论

共有 条评论