-
completed an example of the server and client simple oral communication process....
该实例完成一个服务器端和客户端简单的会话通信过程.要求主机上安装TCP/IP协议,并设定IP.服务器端和客户端使用同一台主机的不同端口号,服务器端使用的端口号为2000,客户端使用的端口号为3000. 服务器端程序先运行,首先初始化Winsock,然后创建套接字,在2000端口上进行绑定,接着在2000端口进行侦听,并进入等待状态.客户端后运行,同样首先初始化winsock,然后创建套接字,接着尝试和服务器端的连接.连接一旦建立,就可以在服务器端和客户端之间进行通信.客户端提示输入一个数字,比如输入50,那么客户端会从"data0"到"data49"发送50个字符串,输入0退出.-completed an example of the server and client simple oral communication process. Asked on the mainframe installed TCP/IP protocol and set the IP. Servers and clients using the same host of different ports, the use of the server port to 2000, clients use the port number as 3000. server operating procedures first, the first initialization Winsock, and then create socket, in 2000 ports on bonding, then the 2000 port for the interception, and entered the wait state. client after running the same protocols of the first initialization, and then create socket, and then try to server connections. connecting once established, can the server and client communications between. the client suggested the import
- 2022-01-26 06:53:43下载
- 积分:1
-
swooleCode
Swoole开发PHP的高性能高并发TCPUDP服务器,源代码下载(Swoole develop high performance concurrent TCPUDP PHP server, source code download)
- 2016-05-11 17:23:04下载
- 积分:1
-
Web-services-monitoring-program
每隔5秒就访问一次web服务,如果登录不上去,则立刻发送邮件通知相关人员,保证服务器和服务的正常运行。(Once every 5 seconds to access the web service, if the registry does not go up, then send the message immediately notify the relevant personnel to ensure the normal operation of servers and services.)
- 2014-02-10 14:56:01下载
- 积分:1
-
wcf 实现大文件上传(有进度条)实例源码
部分win7/win8用户 运行时报错 可能是 权限问题,所以运行项目的时候 要右键>>以管理员身份运行 部分用户 运行该项目的时候 可能提示:协定需要双工 但是绑定 NetTcpBinding 不支持 这是只需要将host项目app.config中协议部分 改为wsDualHttpBinding 即可,如下代码: 另外使用wcf时,最好不要使用 using 因为使用using会屏蔽掉很多错误,误导用户,参考链接:http://www.codeproject.com/Tips/197531/Do-not-use-using-for-WCF-Clients 相关代码改为:using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;using System.ServiceModel;namespace WcfUploadServiceHost{ static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { try { var host = new ServiceHost(typeof (WcfUploadServiceLib.UpLoadService)); host.Open(); Console.WriteLine("Server is opened..."); Console.Read(); //using (var host = new ServiceHost(typeof(WcfUploadServiceLib.UpLoadService))) //{ // host.Open(); // Console.WriteLine("Server is opened..."); // Console.Read(); //} } catch (Exception ex) { Console.WriteLine(ex.ToString()); Console.Read(); } } }}
- 2015-01-07下载
- 积分:1
-
C#远程关闭和重启计算机实例源码下载
C#远程关闭和重启计算机实例,功能已实现,供参考学习
- 2013-01-24下载
- 积分:1
-
hqwyyzm
通过此软件可以获取网页验证码,用于研究软件来控制网页中的元素信息.(With this software, you can access to the website code, used to study the software to control elements of the website information.)
- 2013-10-11 15:47:03下载
- 积分:1
-
Crystaloscillatorcircuit
晶振电路的一些需要考虑的东西,仅供参考哦(Crystal oscillator circuit to be considered by a number of things, oh, for reference only)
- 2009-04-30 08:59:31下载
- 积分:1
-
WifiControl
用来控制网卡的源码,可以列出机器中所有的网卡,并可实现禁用和启用网卡(card used to control the source, a list of all the machines card and can achieve banned and the opening of NIC)
- 2020-07-29 16:48:38下载
- 积分:1
-
popular Internet site MOVE
热门网站移动
- 2022-05-12 16:34:27下载
- 积分:1
-
this upload sample
this upload sample-this upload sample................
- 2022-04-13 07:54:17下载
- 积分:1