文件名称:Multithread-socket
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2014-08-14
- 文件大小:
- 34kb
- 下载次数:
- 0次
- 提 供 者:
- jacks*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
这是一个关于socket简单的通信源码,采用了多线程!实现了异步通信。IP地址自动获取主机的,端口为:14220,需要修改的
SocketServer、SocketClient都需要修改
TcpListener tcplistener = new TcpListener(ipa, 14220),修改为需要端口或IP即可,源码功能比较简单适合初学者学习。
注意:
开发环境为Visual Studio 2010-This is a simple socket communication source, using a multi-threaded! Implements asynchronous communication. Automatically obtain IP address of the host, port: 14220, need to be amended
SocketServer, SocketClient need to modify
TcpListener tcplistener = new TcpListener (ipa, 14220), revised as needed to port or IP, source function is relatively simple for beginners to learn.
Note:
Development environment for Visual Studio 2010
SocketServer、SocketClient都需要修改
TcpListener tcplistener = new TcpListener(ipa, 14220),修改为需要端口或IP即可,源码功能比较简单适合初学者学习。
注意:
开发环境为Visual Studio 2010-This is a simple socket communication source, using a multi-threaded! Implements asynchronous communication. Automatically obtain IP address of the host, port: 14220, need to be amended
SocketServer, SocketClient need to modify
TcpListener tcplistener = new TcpListener (ipa, 14220), revised as needed to port or IP, source function is relatively simple for beginners to learn.
Note:
Development environment for Visual Studio 2010
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SocketClient\bin\Debug\SocketClient.vshost.exe
............\...\.....\SocketClient.vshost.exe.manifest
............\Form1.cs
............\Form1.Designer.cs
............\Form1.resx
............\Program.cs
............\...perties\AssemblyInfo.cs
............\..........\Resources.Designer.cs
............\..........\Resources.resx
............\..........\Settings.Designer.cs
............\..........\Settings.settings
............\SocketClient.csproj
......Server\bin\Debug\SocketServer.vshost.exe
............\...\.....\SocketServer.vshost.exe.manifest
............\Form1.cs
............\Form1.Designer.cs
............\Form1.resx
............\Program.cs
............\...perties\AssemblyInfo.cs
............\..........\Resources.Designer.cs
............\..........\Resources.resx
............\..........\Settings.Designer.cs
............\..........\Settings.settings
............\SocketServer.csproj
Socket-text.sln
......Client\bin\Debug
......Server\bin\Debug
......Client\bin
............\Properties
......Server\bin
............\Properties
SocketClient
SocketServer
说明.txt