Delphi TCP协议CS结构接收和发送数据实例源码.rar

上传者: 39840387 | 上传时间: 2022-04-08 14:32:50 | 文件大小: 59KB | 文件类型: RAR
Delphi TCP协议CS结构接收和发送数据实例源码,两者都要运行,指定端口后双方建立连接,在客户端可向服务端发送消息和数据,服务端可接收数据,server端程序界面效果如图所示。
  procedure TSHYServerFm.IdTCPServer1Connect(AContext: TIdContext);
  begin
  LbLog.Items.Add('来自主机 '
   AContext.Connection.Socket.Binding.PeerIP
   ' 的连接请求已被接纳!');
  AContext.Connection.Socket.WriteLn('100: 欢迎连接到简单TCP服务器!');
  end;

文件下载

资源详情

[{"title":"( 52 个子文件 59KB ) Delphi TCP协议CS结构接收和发送数据实例源码.rar","children":[{"title":"srcfans.com","children":[{"title":"Tcp IP 通信程序编写","children":[{"title":"Client","children":[{"title":"SHYClientPrj_Icon.ico <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"__history","children":[{"title":"SHYClient.pas.~9~ <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"SHYClient.pas.~15~ <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"SHYClient.pas.~18~ <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"SHYClient.pas.~17~ <span style='color:#111;'> 4.26KB </span>","children":null,"spread":false},{"title":"SHYClient.pas.~10~ <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"SHYClient.pas.~12~ <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"SHYClient.pas.~11~ <span style='color:#111;'> 3.88KB </span>","children":null,"spread":false},{"title":"SHYClient.dfm.~2~ <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"SHYClient.dfm.~4~ <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"SHYClient.pas.~16~ <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"SHYClient.pas.~13~ <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false},{"title":"SHYClient.pas.~14~ <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"SHYClient.dfm.~3~ <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"SHYClient.dfm.~1~ <span style='color:#111;'> 2.64KB </span>","children":null,"spread":false}],"spread":false},{"title":"SHYClientPrj.cfg <span style='color:#111;'> 434B </span>","children":null,"spread":false},{"title":"SHYClientPrj.stat <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":"SHYClient.ddp <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"SHYClientPrj.dof <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"__recovery","children":null,"spread":false},{"title":"SHYClientPrj.res <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"SHYClient.dcu <span style='color:#111;'> 10.59KB </span>","children":null,"spread":false},{"title":"SHYClientPrj.identcache <span style='color:#111;'> 169B </span>","children":null,"spread":false},{"title":"SHYClientPrj.dproj <span style='color:#111;'> 6.41KB </span>","children":null,"spread":false},{"title":"SHYClient.dfm <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"SHYClient.pas <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false},{"title":"SHYClientPrj.dpr <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"SHYClientPrj.dproj.local <span style='color:#111;'> 62B </span>","children":null,"spread":false}],"spread":false},{"title":"Server","children":[{"title":"__history","children":[{"title":"SHYServer.pas.~1~ <span style='color:#111;'> 3.99KB </span>","children":null,"spread":false},{"title":"SHYServer.pas.~3~ <span style='color:#111;'> 4.04KB </span>","children":null,"spread":false},{"title":"SHYServer.pas.~5~ <span style='color:#111;'> 5.20KB </span>","children":null,"spread":false},{"title":"SHYServer.pas.~6~ <span style='color:#111;'> 5.19KB </span>","children":null,"spread":false},{"title":"SHYServer.pas.~8~ <span style='color:#111;'> 5.20KB </span>","children":null,"spread":false},{"title":"SHYServer.pas.~7~ <span style='color:#111;'> 5.20KB </span>","children":null,"spread":false},{"title":"SHYServer.dfm.~4~ <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"SHYServer.dfm.~1~ <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"SHYServer.pas.~2~ <span style='color:#111;'> 4.03KB </span>","children":null,"spread":false},{"title":"SHYServer.dfm.~3~ <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"SHYServer.pas.~4~ <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"SHYServer.dfm.~2~ <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false}],"spread":false},{"title":"SHYServerPrj.identcache <span style='color:#111;'> 169B </span>","children":null,"spread":false},{"title":"SHYServerPrj.res <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"SHYServerPrj.cfg <span style='color:#111;'> 434B </span>","children":null,"spread":false},{"title":"SHYServer.ddp <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"SHYServerPrj.dproj <span style='color:#111;'> 6.66KB </span>","children":null,"spread":false},{"title":"SHYServerPrj.dof <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"SHYServerPrj.stat <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"SHYServerPrj.dproj.local <span style='color:#111;'> 62B </span>","children":null,"spread":false},{"title":"SHYServer.pas <span style='color:#111;'> 5.24KB </span>","children":null,"spread":false},{"title":"SHYServerPrj_Icon.ico <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"SHYServer.dcu <span style='color:#111;'> 9.16KB </span>","children":null,"spread":false},{"title":"SHYServerPrj.dpr <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"SHYServer.dfm <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明