CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Internet/网络编程

文件名称:SocketCommunication

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2012-11-16
  • 文件大小:
    87.85kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

Socket实现客户端与服务端通信源码

程序说明:

开发工具:Visual Studio 2005

本程序演示了Socket通信的基本原理,非常适合初学者。程序分为两部分:服务器端与客户端,实际上客户端也可以充当服务器端,本程序两端的区别在于服务器端要发送数据必须要有客户端的连接作为基础,而客户端没有此限制。希望本示例能够给大家学习SOCKET带来帮助。

注意事项:

1.运行程序之前请先设定好服务器端的IP地址,在客户端程序中的设置-》服务器IP设置,可更改为具体服务器的IP地址,否则程序将不能正常运行

2.运行服务器端程序,运行后服务器端会自动以本地的IP地址与预设的端口号开启监听。本程序可以在局域网中实现简单的通信,但是只能向服务器发送数据,然后服务器向指定的客户端发送数据。大家可以在此基础上对程序进行更改,让局域网上的每个用户都可以聊天。

-Socket to achieve client and server communication source

Program Descr iption:

Development Tools: Visual Studio 2005

This program demonstrates the basic principles of Socket Communications, is suitable for beginners. Program is divided into two parts: the server side and client side, in fact, clients can also act as a server-side, the difference between both ends of this procedure is to send the data server must have a connection as a basis for the client, but client does not have this limitation. Hope this example will be helpful for everyone to learn SOCKET.

Note:

1. Run the program before you set up the IP address of the server, the client program settings- the "server IP settings, change the IP address for a specific server, otherwise the program will not run

2. Run the server-side program will run automatically after the server s IP address and the default local port number of open listening. This procedure can be implemented in a simple local area network communications, but
(系统自动生成,下载前可以参看下载内容)

下载文件列表

SocketCommunication/ClientSocket/ClientSocket/app.config
SocketCommunication/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.exe
SocketCommunication/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.exe.config
SocketCommunication/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.pdb
SocketCommunication/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.vshost.exe
SocketCommunication/ClientSocket/ClientSocket/bin/Debug/ClientSocketForms.vshost.exe.config
SocketCommunication/ClientSocket/ClientSocket/bin/Debug
SocketCommunication/ClientSocket/ClientSocket/bin
SocketCommunication/ClientSocket/ClientSocket/ClientSocketForms.csproj
SocketCommunication/ClientSocket/ClientSocket/ClientSocketTestForm.cs
SocketCommunication/ClientSocket/ClientSocket/ClientSocketTestForm.Designer.cs
SocketCommunication/ClientSocket/ClientSocket/ClientSocketTestForm.resx
SocketCommunication/ClientSocket/ClientSocket/obj/ClientSocketForms.csproj.FileListAbsolute.txt
SocketCommunication/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.ClientSocketTestForm.resources
SocketCommunication/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.csproj.GenerateResource.Cache
SocketCommunication/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.exe
SocketCommunication/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.pdb
SocketCommunication/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.Properties.Resources.resources
SocketCommunication/ClientSocket/ClientSocket/obj/Debug/ClientSocketForms.ServerIPForm.resources
SocketCommunication/ClientSocket/ClientSocket/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
SocketCommunication/ClientSocket/ClientSocket/obj/Debug/TempPE
SocketCommunication/ClientSocket/ClientSocket/obj/Debug/Refactor
SocketCommunication/ClientSocket/ClientSocket/obj/Debug
SocketCommunication/ClientSocket/ClientSocket/obj
SocketCommunication/ClientSocket/ClientSocket/Program.cs
SocketCommunication/ClientSocket/ClientSocket/Properties/AssemblyInfo.cs
SocketCommunication/ClientSocket/ClientSocket/Properties/Resources.Designer.cs
SocketCommunication/ClientSocket/ClientSocket/Properties/Resources.resx
SocketCommunication/ClientSocket/ClientSocket/Properties/Settings.Designer.cs
SocketCommunication/ClientSocket/ClientSocket/Properties/Settings.settings
SocketCommunication/ClientSocket/ClientSocket/Properties
SocketCommunication/ClientSocket/ClientSocket/ServerIPForm.cs
SocketCommunication/ClientSocket/ClientSocket/ServerIPForm.Designer.cs
SocketCommunication/ClientSocket/ClientSocket/ServerIPForm.resx
SocketCommunication/ClientSocket/ClientSocket
SocketCommunication/ClientSocket/ClientSocket.sln
SocketCommunication/ClientSocket/ClientSocket.suo
SocketCommunication/ClientSocket
SocketCommunication/ServerSocket/ServerSocket.sln
SocketCommunication/ServerSocket/ServerSocket.suo
SocketCommunication/ServerSocket/ServerSocketForms/bin/Debug/ServerSocketForms.exe
SocketCommunication/ServerSocket/ServerSocketForms/bin/Debug/ServerSocketForms.pdb
SocketCommunication/ServerSocket/ServerSocketForms/bin/Debug/ServerSocketForms.vshost.exe
SocketCommunication/ServerSocket/ServerSocketForms/bin/Debug
SocketCommunication/ServerSocket/ServerSocketForms/bin
SocketCommunication/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.csproj.GenerateResource.Cache
SocketCommunication/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.exe
SocketCommunication/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.pdb
SocketCommunication/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.Properties.Resources.resources
SocketCommunication/ServerSocket/ServerSocketForms/obj/Debug/ServerSocketForms.ServerSocketTestForm.resources
SocketCommunication/ServerSocket/ServerSocketForms/obj/Debug/Refactor
SocketCommunication/ServerSocket/ServerSocketForms/obj/Debug/TempPE
SocketCommunication/ServerSocket/ServerSocketForms/obj/Debug
SocketCommunication/ServerSocket/ServerSocketForms/obj/ServerSocketForms.csproj.FileListAbsolute.txt
SocketCommunication/ServerSocket/ServerSocketForms/obj
SocketCommunication/ServerSocket/ServerSocketForms/Program.cs
SocketCommunication/ServerSocket/ServerSocketForms/Properties/AssemblyInfo.cs
SocketCommunication/ServerSocket/ServerSocketForms/Properties/Resources.Designer.cs
SocketCommunication/ServerSocket/ServerSocketForms/Properties/Resources.resx
SocketCommunication/ServerSocket/ServerSocketForms/Properties/Settings.Designer.cs
SocketCommunication/ServerSocket/ServerSocketForms/Properties/Settings.settings
SocketCommunication/ServerSocket/ServerSocketForms/Properties
SocketCommunication/ServerSocket/ServerSocketForms/ServerSocketForms.csproj
SocketCommunication/ServerSocket/ServerSocketForms/ServerSocketTestForm.cs
SocketCommunication/ServerSocket/ServerSocketForms/ServerSocketTestForm.Designer.cs
SocketCommunication/ServerSocket/ServerSocketForms/ServerSocketTestForm.resx
SocketCommunication/ServerSocket/ServerSocketForms
SocketCommunication/ServerSocket
SocketCommunication

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com