登录
首页 » 套接字网络编程 » tcp的socket通讯的简单例子,希望大家可以借鉴

tcp的socket通讯的简单例子,希望大家可以借鉴

于 2023-07-24 发布 文件大小:14.86 kB
0 162
下载积分: 2 下载次数: 1

代码说明:

tcp的socket通讯的简单例子,希望大家可以借鉴-tcp the socket communication simple example, I hope everyone can learn from

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Windows高性能大并发IOCP
    应用背景IOCPDemo服务器Socket默认监听端口为9999,所有连接服务器的Socket,其发送的第一字节为其身份标志,各个协议标志不相同,不在规定标志内的连接将被服务器断开,并且第一字节要求(默认)6秒内必须发送,否则会被强制断开。关键技术IOCPDemo服务端通讯协议都是采用小头结构(低位在前、高位在后、X86都是采用这类结构)的长度,以后加入的协议都采用小头结构,其它平台都需兼容。 协议都采用匈牙利命名法则,每个单词首字母大写,解析命令不区分大小写,各个命令之间的顺序可以乱。 为了加强协议的可调试性,对于每个命令返回值增加一个CODE,用来标识发生错误原因,CODE是一个4字节的无符号整数,第一个字节标识Flag,第二个字节标识是那个命令,后面两个字节表示错误。
    2022-11-25 16:15:14下载
    积分:1
  • C-S聊天室源代码
    一个简易的C-S聊天室源代码 功能介绍:     有服务端与客户端。使用Socket技术,客户端实现了悄悄话、屏幕抖动、聊天记录保存的功能。 注意:     客户端要输入服务端的ip地址,使用客户端前要先打开服务端。
    2022-05-15 01:00:37下载
    积分:1
  • QT的UDP 通信序,可以用于测试UDP服务器端
    QT的UDP 通信程序,可以用于测试UDP服务器端
    2022-02-01 06:56:04下载
    积分:1
  • a UDP/IP protocol stack
    一个UDP/IP协议栈-a UDP/IP protocol stack
    2022-04-17 03:26:46下载
    积分:1
  • 一个用c++写的聊天序(服务器端),提供给大家参考!
    一个用c++编写的聊天程序(服务器端),提供给大家参考!-a prepared with the chat program (server) to provide for your reference!
    2022-07-15 02:19:18下载
    积分:1
  • 站CA认证源代码
    网站CA认证源代码-website CA source code
    2022-07-27 03:18:08下载
    积分:1
  • 德尔福 usb
    //Descriptors 的 VS1000B 的 WinUSB 演示 const u_int32 mySerialNumber = 0x0000001 ; const u_int16 myDeviceDescriptor [] ="p"//Descriptor 作为包装的字符串 "x 12"/ / 长度 "x 01"/ / 描述符类型: 设备 "x 10 x 01"//USB 规格版本号码 "x 00"/ / 类: 未定义 "x 00"/ / 子类: 未定义 "x 00"/ / 协议: 未定义 "x 40"/ / 端点 0 的最大数据包大小: 64 字节 (好任意值) "xfbx19"/ / 0x19fb 的供应商 Id = VLSI 解决方案 Oy "xe0xee"/ / 产品 Id 0xffe0 (eee0 eeef = VLSI 客户测试) "x 00 x 00"/ / 释放 0x0000 "x 01"/ / 制造商字符串索引 "x 02"/ / 型号字符串索引 "x 03"/ / 序列号字符串索引 "x 01"/ / 编号的配置
    2022-03-23 20:35:45下载
    积分:1
  • VC++ 6的HTML辑器:今天,应用序通常需要一个丰富的用户界面。有关。
    HTML Editor for VC++ 6.0:Today, applications often need a rich user interface. One of them is ability to compose or edit HTML documents in an easy, effective, and reliable way. This article and source code attached give you a nice control to perform this task. And now, the best part: This control works fine with Microsoft VC++ 6.0! -HTML Editor for VC 6.0 : Today, applications often need a rich user interface. One of them is ability to compose or edit HTML doc uments in an easy, effective, and reliable way. This article and a source code ttached give you a nice control to perform this t ask. And now, the best part : This control works fine with Microsoft Visual C++ 6.0.
    2022-09-19 17:00:03下载
    积分:1
  • 动态域名基础知识 什么是IP地址 IP地址是在上分配给每台计算机或设备的32位数标识。在Internet上,每台计算机或...
    动态域名基础知识 什么是IP地址 IP地址是在网络上分配给每台计算机或网络设备的32位数字标识。在Internet上,每台计算机或网络设备的IP地址是全世界唯一的。IP地址的格式是 xxx.xxx.xxx.xxx,其中xxx是 0 到 255 之间的任意整数。例如,科迈网站主机的IP地址是 210.22.12.54。 -dynamic domain knowledge what is the basis of IP addresses in the IP network addresses are assigned to each computer or network equipment of the 32-digit identification. On the Internet, every computer equipment or network is the IP address of the world only. IP addresses xxx.xxx.xxx.xxx is the format, which is xxx 0-255 between the arbitrary integer. For example, Comay website host IP address is 210.22.12.54.
    2022-02-03 06:22:12下载
    积分:1
  • socket 文件上传
    模拟客户端 、服务器端socket 之间的通信,实现文件的上传功能,也可用于与APP端的服务器接口使用
    2022-03-21 06:34:20下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载