资源简介

TCP通信C#代码,适合初学者使用 TCP通信C#代码,适合初学者使用 TCP通信C#代码,适合初学者使用 TCPconnection TCPconnection TCPconnection TCPconnection TCPconnectionTCPconnection)

资源截图

代码片段和文件信息

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

namespace TCPClient
{
    public partial class Form1 : Form
    {
        delegate void ControlChangeHandle(string msg1);
        private System.Net.Sockets.TcpClient mytcpclient = new System.Net.Sockets.TcpClient();
        private NetworkStream myNet;
        private void Connect()
        {
            try
            {
                string HostName = this.textBox4.Text.Trim();
                int port = Convert.ToInt32(this.textBox2.Text.Trim());
                mytcpclient.Connect(IPAddress.Parse(HostName) po

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

     文件      11264  2012-01-18 15:38  TCP\TcpClient\TcpClient\bin\Debug\TcpClient.exe

     文件      28160  2012-01-18 15:38  TCP\TcpClient\TcpClient\bin\Debug\TcpClient.pdb

     文件      11600  2012-01-18 15:44  TCP\TcpClient\TcpClient\bin\Debug\TcpClient.vshost.exe

     文件        490  2010-03-17 22:39  TCP\TcpClient\TcpClient\bin\Debug\TcpClient.vshost.exe.manifest

     文件       2619  2012-01-18 15:44  TCP\TcpClient\TcpClient\Form1.cs

     文件       6705  2012-01-18 15:35  TCP\TcpClient\TcpClient\Form1.Designer.cs

     文件       5817  2012-01-18 15:35  TCP\TcpClient\TcpClient\Form1.resx

     文件       2152  2012-01-18 15:09  TCP\TcpClient\TcpClient\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6341  2012-01-18 15:38  TCP\TcpClient\TcpClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        408  2012-01-18 15:35  TCP\TcpClient\TcpClient\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        922  2012-01-18 15:35  TCP\TcpClient\TcpClient\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       1069  2012-01-18 15:44  TCP\TcpClient\TcpClient\obj\x86\Debug\TcpClient.csproj.FileListAbsolute.txt

     文件      11264  2012-01-18 15:38  TCP\TcpClient\TcpClient\obj\x86\Debug\TcpClient.exe

     文件        180  2012-01-18 15:35  TCP\TcpClient\TcpClient\obj\x86\Debug\TCPClient.Form1.resources

     文件      28160  2012-01-18 15:38  TCP\TcpClient\TcpClient\obj\x86\Debug\TcpClient.pdb

     文件        180  2012-01-18 15:15  TCP\TcpClient\TcpClient\obj\x86\Debug\TcpClient.Properties.Resources.resources

     文件        508  2012-01-18 15:38  TCP\TcpClient\TcpClient\Program.cs

     文件       1350  2012-01-18 15:09  TCP\TcpClient\TcpClient\Properties\AssemblyInfo.cs

     文件       2868  2012-01-18 15:09  TCP\TcpClient\TcpClient\Properties\Resources.Designer.cs

     文件       5612  2012-01-18 15:09  TCP\TcpClient\TcpClient\Properties\Resources.resx

     文件       1094  2012-01-18 15:09  TCP\TcpClient\TcpClient\Properties\Settings.Designer.cs

     文件        249  2012-01-18 15:09  TCP\TcpClient\TcpClient\Properties\Settings.settings

     文件       3560  2012-01-18 15:09  TCP\TcpClient\TcpClient\TCPClient.csproj

     文件        869  2012-01-18 15:15  TCP\TcpClient\TcpClient.sln

    ..A..H.     20992  2012-01-18 16:03  TCP\TcpClient\TcpClient.suo

     文件      11264  2012-01-18 15:08  TCP\TCPServer\TCPServer\bin\Debug\TCPServer.exe

     文件      24064  2012-01-18 15:08  TCP\TCPServer\TCPServer\bin\Debug\TCPServer.pdb

     文件      11600  2012-02-02 09:27  TCP\TCPServer\TCPServer\bin\Debug\TCPServer.vshost.exe

     文件        490  2010-03-17 22:39  TCP\TCPServer\TCPServer\bin\Debug\TCPServer.vshost.exe.manifest

     文件       2991  2012-01-18 15:07  TCP\TCPServer\TCPServer\Form1.cs

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

评论

共有 条评论