登录
首页 » 套接字网络编程 » socket编程实现tcp通信

socket编程实现tcp通信

于 2022-03-10 发布 文件大小:9.26 kB
0 196
下载积分: 2 下载次数: 1

代码说明:

实现tcp通信,服务器端等待客户端连接,连接成功后client端发送固定的字符串给客户端,完成通信后,关闭建立的套接字。程序很简单是socket编程的入门级源码,需要的可以下载。

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

发表评论

0 个回复

  • the program is to demonstrate the preparation of HTTP clients, and therefore mus...
    该程序完全是为了演示HTTP的客户编写的,因此运行时必须在本机有开HTTP服务才行。-the program is to demonstrate the preparation of HTTP clients, and therefore must be run in the machine is open HTTP domestic demand.
    2022-07-17 00:29:47下载
    积分:1
  • 实现了文件的传输。(任何文件)
    实现了文件的传输。(任何文件)- Has realized the document transmission. (Any document)
    2022-03-05 19:38:33下载
    积分:1
  • Delphi网络数据包嗅探器
    应用背景样品:单位umain;接口使用 ;窗口,消息,SysUtils,类,图形,控件,窗体, ;对话框,stdctrls,Winsock,comctrls;const ;max_packet_size = 10000美元;2 ^ / / 16 ;sio_rcvall = 98000001美元; ;wsa_ver = 202美元;max_adapter_name_length  ; ; ; ; ; ; ; ;= 256; ;max_adapter_description_length = 128;max_adapter_address_length  ; ; ; ; ;= 8; ;IPHelper =“很DLL;关键技术型 ;UShort =词; ;页= DWORD; ;time_t = LongInt; ;tipheader =压缩记录 ; ; ;iph_verlen: ; ;函数; ; ; ;/ /âåðñèÿèäëèíàçàãîëîâêà ; ; ;iph_tos: ; ; ; ; ;函数; ; ; ;/ /òèïñåðâèñà ; ; ;iph_length: ; ;UShort; ; ;/ /äëèíàâñåãîïàêåòà ; ; ;iph_id: ; ; ; ; ; ;UShort; ; ;/ /Èäåíòèôèêàöèÿ ; ; ;iph_offset: ; ;UShort; ; ;/ /ôëàãèèñìåùåíèÿ ; ; ;iph_ttl: ; ; ; ; ;函数;
    2022-04-27 14:01:23下载
    积分:1
  • 网络的多
    网络多路广播的例子-network of multi-channel broadcasting example
    2022-07-28 14:59:18下载
    积分:1
  • 这是我学习java是收集来的一些入门的资料,希望能帮助那些才开始学习的人!...
    这是我学习java是收集来的一些入门的资料,希望能帮助那些才开始学习的人!-This is my learning java is to collect some data entry, will help those who only started learning!
    2022-02-01 04:47:24下载
    积分:1
  • FINS 通信源代码
    用于欧姆龙PLC与PC端SOCKET通信,可用于测试 学习 实践中 ,代码经调试过  稳定可靠
    2023-08-02 14:40:04下载
    积分:1
  • 本实例是一个网络流量工具,可以统计本地计算机流出和流入数据量的大小。...
    本实例是一个网络流量工具,可以统计本地计算机流出和流入数据量的大小。-this example is a tool for network traffic, statistics of local inflows and outflows of computer data size.
    2022-07-02 11:31:18下载
    积分:1
  • 基于Qt的局域网聊天系统
    应用背景基于Qt的局域网聊天系统,实现了局域网聊天,文件传输,更改字体,保存聊天记录等功能,对于研究Qt,研究局域网通信具有较强学习价值。关键技术udpSocket = new QUdpSocket(this); port = 45454; udpSocket->bind(port, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint); connect(udpSocket, SIGNAL(readyRead()), this, SLOT(processPendingDatagrams())); sendMessage(NewParticipant); server = new TcpServer(this); connect(server, SIGNAL(sendFileName(QString)), this, SLOT(getFileName(QString))); connect(ui->messageTextEdit, SIGNAL(currentCharFormatChanged(QTextCharFormat)), this, SLOT(currentFormatChanged(const QTextCharFormat)));
    2022-01-25 20:19:41下载
    积分:1
  • 一个简单的UDP网络聊天工具,包含客户端和服务器。
    一个简单的UDP网络聊天工具,包含客户端和服务器。-A simple UDP network chat tool that includes client and server.
    2022-08-22 12:30:54下载
    积分:1
  • BAOJIMAP 宝鸡电子地图2006版 最新最好的电子地图
    BAOJIMAP 宝鸡电子地图2006版 最新最好的电子地图-BAOJIMAP Baoji electronic maps updated 2006 edition of the best electronic map
    2022-10-21 18:35:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载