文件名称:tcpip2

  • 所属分类:
  • 通讯编程
  • 资源属性:
  • [Windows] [Visual C] [源码]
  • 上传时间:
  • 2016-11-24
  • 文件大小:
  • 5.85mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 王*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

简单的客户/服务器程序实现客户和服务器相互收发数据直到一端输入“end”结束。

具体:

客户:(1)客户创建流套接字,向服务器发起TCP连接。(或是客户创建数据报套接字)

(2)连接创建成功后,通过套接字向服务器持续发送或是接收数据。

(3)输入或是收到命令”end”,结束收发数据,并断开与服务器的连接。

服务器:(1)服务器创建监听套接字,监听客户TCP连接请求。(或是创建数据报套接字)

(2)当收到一个客户TCP连接请求,创建连接套接字同意与其创建连接。

(3)通过套接字与客户持续发送或是接收数据。

(4)输入或是收到”end“命令,结束与该客户的收发数据,断开连接。-A simple client/server program to achieve the client and server to send and receive data with each other until one end of the end end of the input data.

Specific:

Customer: (1) the client creates a stream socket and initiates an TCP connection to the server. (or the client creates a data socket)

(2) after the success of the connection, through the socket to the server to send or receive data.

(3) enter or receive the command end , the end of sending and receiving data, and disconnect the connection with the server.

Server: (1) server to create a listening socket, monitor client TCP connection request. (or create a data socket)

(2) when a client TCP connection request is received, the connection socket is created to agree to the creation of the connection.

(3) continue to send or receive data via a socket to a customer.

(4) enter or receive the end command, end with the client s data, disconnect.
(系统自动生成,下载前可以参看下载内容)

下载文件列表





tcpip2

......\TCP

......\...\Server

......\...\......\._Server.cpp

......\...\......\Debug

......\...\......\.....\Server.exe

......\...\......\.....\Server.ilk

......\...\......\.....\Server.obj

......\...\......\.....\Server.pch

......\...\......\.....\Server.pdb

......\...\......\.....\StdAfx.obj

......\...\......\.....\client.obj

......\...\......\.....\vc60.idb

......\...\......\.....\vc60.pdb

......\...\......\ReadMe.txt

......\...\......\Server.cpp

......\...\......\Server.dsp

......\...\......\Server.dsw

......\...\......\Server.ncb

......\...\......\Server.opt

......\...\......\Server.plg

......\...\......\StdAfx.cpp

......\...\......\StdAfx.h

......\...\client

......\...\......\._client.cpp

......\...\......\Debug

......\...\......\.....\Server.obj

......\...\......\.....\client.exe

......\...\......\.....\client.ilk

......\...\......\.....\client.obj

......\...\......\.....\client.pch

......\...\......\.....\client.pdb

......\...\......\.....\vc60.idb

......\...\......\.....\vc60.pdb

......\...\......\ReadMe.txt

......\...\......\StdAfx.cpp

......\...\......\StdAfx.h

......\...\......\client.cpp

......\...\......\client.dsp

......\...\......\client.dsw

......\...\......\client.ncb

......\...\......\client.opt

......\...\......\client.plg

......\UDP

......\...\Server

......\...\......\._Server.cpp

......\...\......\Debug

......\...\......\.....\Server.exe

......\...\......\.....\Server.ilk

......\...\......\.....\Server.obj

......\...\......\.....\Server.pch

......\...\......\.....\Server.pdb

......\...\......\.....\StdAfx.obj

......\...\......\.....\client.obj

......\...\......\.....\vc60.idb

......\...\......\.....\vc60.pdb

......\...\......\ReadMe.txt

......\...\......\Server.cpp

......\...\......\Server.dsp

......\...\......\Server.dsw

......\...\......\Server.ncb

......\...\......\Server.opt

......\...\......\Server.plg

......\...\......\StdAfx.cpp

......\...\......\StdAfx.h

......\...\client

......\...\......\._client.cpp

......\...\......\Debug

......\...\......\.....\Server.obj

......\...\......\.....\client.exe

......\...\......\.....\client.ilk

......\...\......\.....\client.obj

......\...\......\.....\client.pch

......\...\......\.....\client.pdb

......\...\......\.....\vc60.idb

......\...\......\.....\vc60.pdb

......\...\......\ReadMe.txt

......\...\......\StdAfx.cpp

......\...\......\StdAfx.h

......\...\......\client.cpp

......\...\......\client.dsp

......\...\......\client.dsw

......\...\......\client.ncb

......\...\......\client.opt

......\...\......\client.plg

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org