文件名称:SockeforClientServer
-
所属分类:
- 标签属性:
- 上传时间:2014-12-31
-
文件大小:104.03kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
本程序演示了Socket通信的基本原理,非常适合初学者。程序分为两部分:服务器端与客户端,实际上客户端也可以充当服务器端,本程序两端的区别在于服务器端要发送数据必须要有客户端的连接作为基础,而客户端没有此限制。希望本示例能够给大家学习SOCKET带来帮助。
注意事项:
1.运行程序之前请先设定好服务器端的IP地址,在客户端程序中的设置-》服务器IP设置,可更改为具体服务器的IP地址,否则程序将不能正常运行
2.运行服务器端程序,运行后服务器端会自动以本地的IP地址与预设的端口号开启监听。本程序可以在局域网中实现简单的通信,但是只能向服务器发送数据,然后服务器向指定的客户端发送数据。大家可以在此基础上对程序进行更改,让局域网上的每个用户都可以聊天。-This program demonstrates the basic principles of Socket Communications, is very suitable for beginners. Program is divided into two parts: the server and client, in fact, clients can also act as a server-side, the difference between the two ends of this program is that the server to send the data must have a connection to the client as a basis, but the client does not have this limitation. I hope this can give you an example of learning SOCKET help. Note: 1. Before running the program, please set the IP address of a good server, set up in the client program- " Server IP settings, you can change the IP address of a specific server, otherwise the program will not run properly 2. Run the server end of the program, the server will automatically default local IP address and port number of open listening run. This program can be implemented in a simple LAN communication, but can only send data to the server, which then sends the data to the specified client. We can make changes to the p
注意事项:
1.运行程序之前请先设定好服务器端的IP地址,在客户端程序中的设置-》服务器IP设置,可更改为具体服务器的IP地址,否则程序将不能正常运行
2.运行服务器端程序,运行后服务器端会自动以本地的IP地址与预设的端口号开启监听。本程序可以在局域网中实现简单的通信,但是只能向服务器发送数据,然后服务器向指定的客户端发送数据。大家可以在此基础上对程序进行更改,让局域网上的每个用户都可以聊天。-This program demonstrates the basic principles of Socket Communications, is very suitable for beginners. Program is divided into two parts: the server and client, in fact, clients can also act as a server-side, the difference between the two ends of this program is that the server to send the data must have a connection to the client as a basis, but the client does not have this limitation. I hope this can give you an example of learning SOCKET help. Note: 1. Before running the program, please set the IP address of a good server, set up in the client program- " Server IP settings, you can change the IP address of a specific server, otherwise the program will not run properly 2. Run the server end of the program, the server will automatically default local IP address and port number of open listening run. This program can be implemented in a simple LAN communication, but can only send data to the server, which then sends the data to the specified client. We can make changes to the p
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SocketCom/
SocketCom/ClientSocket/
SocketCom/ClientSocket/ClientSocket/
SocketCom/ClientSocket/ClientSocket.sln
SocketCom/ClientSocket/ClientSocket.suo
SocketCom/ClientSocket/ClientSocket/app.config
SocketCom/ClientSocket/ClientSocket/bin/
SocketCom/ClientSocket/ClientSocket/bin/Debug/
SocketCom/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.exe
SocketCom/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.exe.config
SocketCom/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.pdb
SocketCom/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.vshost.exe
SocketCom/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.vshost.exe.config
SocketCom/ClientSocket/ClientSocket/ClientSocketForms.csproj
SocketCom/ClientSocket/ClientSocket/ClientSocketTestForm.cs
SocketCom/ClientSocket/ClientSocket/ClientSocketTestForm.Designer.cs
SocketCom/ClientSocket/ClientSocket/ClientSocketTestForm.resx
SocketCom/ClientSocket/ClientSocket/obj/
SocketCom/ClientSocket/ClientSocket/obj/ClientSocketForms.csproj.FileListAbsolute.txt
SocketCom/ClientSocket/ClientSocket/obj/Debug/
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.ClientSocketTestForm.resources
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.csproj.GenerateResource.Cache
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.exe
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.pdb
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.Properties.Resources.resources
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.ServerIPForm.resources
SocketCom/ClientSocket/ClientSocket/obj/Debug/Refactor/
SocketCom/ClientSocket/ClientSocket/obj/Debug/TempPE/
SocketCom/ClientSocket/ClientSocket/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
SocketCom/ClientSocket/ClientSocket/Program.cs
SocketCom/ClientSocket/ClientSocket/Properties/
SocketCom/ClientSocket/ClientSocket/Properties/AssemblyInfo.cs
SocketCom/ClientSocket/ClientSocket/Properties/Resources.Designer.cs
SocketCom/ClientSocket/ClientSocket/Properties/Resources.resx
SocketCom/ClientSocket/ClientSocket/Properties/Settings.Designer.cs
SocketCom/ClientSocket/ClientSocket/Properties/Settings.settings
SocketCom/ClientSocket/ClientSocket/ServerIPForm.cs
SocketCom/ClientSocket/ClientSocket/ServerIPForm.Designer.cs
SocketCom/ClientSocket/ClientSocket/ServerIPForm.resx
SocketCom/ServerSocket/
SocketCom/ServerSocket/ServerSocket.sln
SocketCom/ServerSocket/ServerSocket.suo
SocketCom/ServerSocket/ServerSocketForms/
SocketCom/ServerSocket/ServerSocketForms/bin/
SocketCom/ServerSocket/ServerSocketForms/bin/Debug/
SocketCom/ServerSocket/ServerSocketForms/bin/Debug/ServerSocketForms.exe
SocketCom/ServerSocket/ServerSocketForms/bin/Debug/ServerSocketForms.pdb
SocketCom/ServerSocket/ServerSocketForms/bin/Debug/ServerSocketForms.vshost.exe
SocketCom/ServerSocket/ServerSocketForms/obj/
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/Refactor/
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.csproj.GenerateResource.Cache
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.exe
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.pdb
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.Properties.Resources.resources
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.ServerSocketTestForm.resources
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/TempPE/
SocketCom/ServerSocket/ServerSocketForms/obj/ServerSocketForms.csproj.FileListAbsolute.txt
SocketCom/ServerSocket/ServerSocketForms/Program.cs
SocketCom/ServerSocket/ServerSocketForms/Properties/
SocketCom/ServerSocket/ServerSocketForms/Properties/AssemblyInfo.cs
SocketCom/ServerSocket/ServerSocketForms/Properties/Resources.Designer.cs
SocketCom/ServerSocket/ServerSocketForms/Properties/Resources.resx
SocketCom/ServerSocket/ServerSocketForms/Properties/Settings.Designer.cs
SocketCom/ServerSocket/ServerSocketForms/Properties/Settings.settings
SocketCom/ServerSocket/ServerSocketForms/ServerSocketForms.csproj
SocketCom/ServerSocket/ServerSocketForms/ServerSocketTestForm.cs
SocketCom/ServerSocket/ServerSocketForms/ServerSocketTestForm.Designer.cs
SocketCom/ServerSocket/ServerSocketForms/ServerSocketTestForm.resx
SocketCom/ClientSocket/
SocketCom/ClientSocket/ClientSocket/
SocketCom/ClientSocket/ClientSocket.sln
SocketCom/ClientSocket/ClientSocket.suo
SocketCom/ClientSocket/ClientSocket/app.config
SocketCom/ClientSocket/ClientSocket/bin/
SocketCom/ClientSocket/ClientSocket/bin/Debug/
SocketCom/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.exe
SocketCom/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.exe.config
SocketCom/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.pdb
SocketCom/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.vshost.exe
SocketCom/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.vshost.exe.config
SocketCom/ClientSocket/ClientSocket/ClientSocketForms.csproj
SocketCom/ClientSocket/ClientSocket/ClientSocketTestForm.cs
SocketCom/ClientSocket/ClientSocket/ClientSocketTestForm.Designer.cs
SocketCom/ClientSocket/ClientSocket/ClientSocketTestForm.resx
SocketCom/ClientSocket/ClientSocket/obj/
SocketCom/ClientSocket/ClientSocket/obj/ClientSocketForms.csproj.FileListAbsolute.txt
SocketCom/ClientSocket/ClientSocket/obj/Debug/
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.ClientSocketTestForm.resources
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.csproj.GenerateResource.Cache
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.exe
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.pdb
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.Properties.Resources.resources
SocketCom/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.ServerIPForm.resources
SocketCom/ClientSocket/ClientSocket/obj/Debug/Refactor/
SocketCom/ClientSocket/ClientSocket/obj/Debug/TempPE/
SocketCom/ClientSocket/ClientSocket/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
SocketCom/ClientSocket/ClientSocket/Program.cs
SocketCom/ClientSocket/ClientSocket/Properties/
SocketCom/ClientSocket/ClientSocket/Properties/AssemblyInfo.cs
SocketCom/ClientSocket/ClientSocket/Properties/Resources.Designer.cs
SocketCom/ClientSocket/ClientSocket/Properties/Resources.resx
SocketCom/ClientSocket/ClientSocket/Properties/Settings.Designer.cs
SocketCom/ClientSocket/ClientSocket/Properties/Settings.settings
SocketCom/ClientSocket/ClientSocket/ServerIPForm.cs
SocketCom/ClientSocket/ClientSocket/ServerIPForm.Designer.cs
SocketCom/ClientSocket/ClientSocket/ServerIPForm.resx
SocketCom/ServerSocket/
SocketCom/ServerSocket/ServerSocket.sln
SocketCom/ServerSocket/ServerSocket.suo
SocketCom/ServerSocket/ServerSocketForms/
SocketCom/ServerSocket/ServerSocketForms/bin/
SocketCom/ServerSocket/ServerSocketForms/bin/Debug/
SocketCom/ServerSocket/ServerSocketForms/bin/Debug/ServerSocketForms.exe
SocketCom/ServerSocket/ServerSocketForms/bin/Debug/ServerSocketForms.pdb
SocketCom/ServerSocket/ServerSocketForms/bin/Debug/ServerSocketForms.vshost.exe
SocketCom/ServerSocket/ServerSocketForms/obj/
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/Refactor/
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.csproj.GenerateResource.Cache
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.exe
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.pdb
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.Properties.Resources.resources
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.ServerSocketTestForm.resources
SocketCom/ServerSocket/ServerSocketForms/obj/Debug/TempPE/
SocketCom/ServerSocket/ServerSocketForms/obj/ServerSocketForms.csproj.FileListAbsolute.txt
SocketCom/ServerSocket/ServerSocketForms/Program.cs
SocketCom/ServerSocket/ServerSocketForms/Properties/
SocketCom/ServerSocket/ServerSocketForms/Properties/AssemblyInfo.cs
SocketCom/ServerSocket/ServerSocketForms/Properties/Resources.Designer.cs
SocketCom/ServerSocket/ServerSocketForms/Properties/Resources.resx
SocketCom/ServerSocket/ServerSocketForms/Properties/Settings.Designer.cs
SocketCom/ServerSocket/ServerSocketForms/Properties/Settings.settings
SocketCom/ServerSocket/ServerSocketForms/ServerSocketForms.csproj
SocketCom/ServerSocket/ServerSocketForms/ServerSocketTestForm.cs
SocketCom/ServerSocket/ServerSocketForms/ServerSocketTestForm.Designer.cs
SocketCom/ServerSocket/ServerSocketForms/ServerSocketTestForm.resx
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.