该实例完成一个服务器端和客户端简单的会话通信过程.要求主机上安装TCP/IP协议,并设定IP.服务器端和客户端使用同一台主机的不同端口号,服务器端使用的端口号为2000,客户端使用的端口号为3000. 服务器端程序先运行,首先初始化Winsock,然后创建套接字,在2000端口上进行绑定,接着在2000端口进行侦听,并进入等待状态.客户端后运行,同样首先初始化winsock,然后创建套接字,接着尝试和服务器端的连接.连接一旦建立,就可以在服务器端和客户端之间进行通信.客户端提示输入一个数字,比如输入50,那么客户端会从"data0"到"data49"发送50个字符串,输入0退出.
上传时间: 2013-11-27
上传用户:lxm
嵌入式TCP/IP协议栈。 C 源码,对于开发TCP/IP协议栈的用户具有非常大的参考价值。
上传时间: 2015-04-04
上传用户:caiiicc
Synopsys 8051 IP core documentation.
标签: documentation Synopsys 8051 core
上传时间: 2015-04-04
上传用户:wff
use embedded visual basic develop windows ce application book(companion CD code)
标签: application companion embedded develop
上传时间: 2014-01-17
上传用户:zjf3110
超轻量级TCP/IP协议栈源代码,可用于嵌入式开发学习
上传时间: 2013-12-15
上传用户:问题问题
一步步讲解如何在VC中调用matlab图像处理工具箱来进行canny边缘提取 1.包含pdf文档和源代码 2.源代码code 开发环境是VC6、Matlab7
上传时间: 2014-01-26
上传用户:aappkkee
LCD IconEditor edit graphic creat source code
标签: IconEditor graphic source creat
上传时间: 2015-04-05
上传用户:zhanditian
This module contains the code needed to test the RealTek Ethernet Controller.
标签: Controller the Ethernet contains
上传时间: 2015-04-05
上传用户:banyou
Altera的IP源码8259,只需打开就能实现
上传时间: 2014-01-24
上传用户:skhlm
This version of the code is compatible only with the AT89C2051 due to the location of the data buffer and stack in RAM. The code may be modified to work with the AT89C1051 by relocating or resizing the buffer and stack to fit into the smaller amount of RAM available in the AT89C1051.
标签: the compatible location version
上传时间: 2015-04-05
上传用户:changeboy