文件名称:tcpip1
-
所属分类:
- 标签属性:
- 上传时间:2016-11-24
-
文件大小:7.75mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
简单的客户/服务器程序实现客户系统时间和服务器系统时间同步。
具体:
客户:(1)客户创建流套接字,向服务器发起TCP连接。
(2)连接创建成功后,接收服务器返回的时间,更新客户系统时间。
(3)断开与服务器的连接。
服务器:(1)服务器创建监听套接字,监听客户TCP连接请求。
(2)当收到一个客户TCP连接请求,创建连接套接字同意与其创建连接。
(3)获取系统时间,通过连接套接字返回给客户。-Simple client/server program to achieve customer system time and server system time synchronization.
Specific:
Customer: (1) the client creates a stream socket and initiates an TCP connection to the server.
(2) after the connection is created, the server returns the time and updates the customer system time.
(3) disconnect the server.
Server: (1) server to create a listening socket, monitor client TCP connection request.
(2) when a client TCP connection request is received, the connection socket is created to agree to the creation of the connection.
(3) to obtain the system time, through the connection socket to return to the customer.
具体:
客户:(1)客户创建流套接字,向服务器发起TCP连接。
(2)连接创建成功后,接收服务器返回的时间,更新客户系统时间。
(3)断开与服务器的连接。
服务器:(1)服务器创建监听套接字,监听客户TCP连接请求。
(2)当收到一个客户TCP连接请求,创建连接套接字同意与其创建连接。
(3)获取系统时间,通过连接套接字返回给客户。-Simple client/server program to achieve customer system time and server system time synchronization.
Specific:
Customer: (1) the client creates a stream socket and initiates an TCP connection to the server.
(2) after the connection is created, the server returns the time and updates the customer system time.
(3) disconnect the server.
Server: (1) server to create a listening socket, monitor client TCP connection request.
(2) when a client TCP connection request is received, the connection socket is created to agree to the creation of the connection.
(3) to obtain the system time, through the connection socket to return to the customer.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验1/
实验1/TCP/
实验1/TCP/Server/
实验1/TCP/Server/._Server.cpp
实验1/TCP/Server/Debug/
实验1/TCP/Server/Debug/Server.exe
实验1/TCP/Server/Debug/Server.ilk
实验1/TCP/Server/Debug/Server.obj
实验1/TCP/Server/Debug/Server.pch
实验1/TCP/Server/Debug/Server.pdb
实验1/TCP/Server/Debug/StdAfx.obj
实验1/TCP/Server/Debug/client.obj
实验1/TCP/Server/Debug/vc60.idb
实验1/TCP/Server/Debug/vc60.pdb
实验1/TCP/Server/ReadMe.txt
实验1/TCP/Server/Server.cpp
实验1/TCP/Server/Server.dsp
实验1/TCP/Server/Server.dsw
实验1/TCP/Server/Server.ncb
实验1/TCP/Server/Server.opt
实验1/TCP/Server/Server.plg
实验1/TCP/Server/StdAfx.cpp
实验1/TCP/Server/StdAfx.h
实验1/TCP/client/
实验1/TCP/client/._client.cpp
实验1/TCP/client/Debug/
实验1/TCP/client/Debug/client.exe
实验1/TCP/client/Debug/client.ilk
实验1/TCP/client/Debug/client.obj
实验1/TCP/client/Debug/client.pch
实验1/TCP/client/Debug/client.pdb
实验1/TCP/client/Debug/vc60.idb
实验1/TCP/client/Debug/vc60.pdb
实验1/TCP/client/ReadMe.txt
实验1/TCP/client/StdAfx.cpp
实验1/TCP/client/StdAfx.h
实验1/TCP/client/client.cpp
实验1/TCP/client/client.dsp
实验1/TCP/client/client.dsw
实验1/TCP/client/client.ncb
实验1/TCP/client/client.opt
实验1/TCP/client/client.plg
实验1/UDP/
实验1/UDP/Server/
实验1/UDP/Server/._Server.cpp
实验1/UDP/Server/Debug/
实验1/UDP/Server/Debug/Server.exe
实验1/UDP/Server/Debug/Server.ilk
实验1/UDP/Server/Debug/Server.obj
实验1/UDP/Server/Debug/Server.pch
实验1/UDP/Server/Debug/Server.pdb
实验1/UDP/Server/Debug/StdAfx.obj
实验1/UDP/Server/Debug/client.obj
实验1/UDP/Server/Debug/vc60.idb
实验1/UDP/Server/Debug/vc60.pdb
实验1/UDP/Server/ReadMe.txt
实验1/UDP/Server/Server.cpp
实验1/UDP/Server/Server.dsp
实验1/UDP/Server/Server.dsw
实验1/UDP/Server/Server.ncb
实验1/UDP/Server/Server.opt
实验1/UDP/Server/Server.plg
实验1/UDP/Server/StdAfx.cpp
实验1/UDP/Server/StdAfx.h
实验1/UDP/client/
实验1/UDP/client/._client.cpp
实验1/UDP/client/Debug/
实验1/UDP/client/Debug/Server.obj
实验1/UDP/client/Debug/client.exe
实验1/UDP/client/Debug/client.ilk
实验1/UDP/client/Debug/client.obj
实验1/UDP/client/Debug/client.pch
实验1/UDP/client/Debug/client.pdb
实验1/UDP/client/Debug/vc60.idb
实验1/UDP/client/Debug/vc60.pdb
实验1/UDP/client/ReadMe.txt
实验1/UDP/client/StdAfx.cpp
实验1/UDP/client/StdAfx.h
实验1/UDP/client/client.cpp
实验1/UDP/client/client.dsp
实验1/UDP/client/client.dsw
实验1/UDP/client/client.ncb
实验1/UDP/client/client.opt
实验1/UDP/client/client.plg
实验1/TCP/
实验1/TCP/Server/
实验1/TCP/Server/._Server.cpp
实验1/TCP/Server/Debug/
实验1/TCP/Server/Debug/Server.exe
实验1/TCP/Server/Debug/Server.ilk
实验1/TCP/Server/Debug/Server.obj
实验1/TCP/Server/Debug/Server.pch
实验1/TCP/Server/Debug/Server.pdb
实验1/TCP/Server/Debug/StdAfx.obj
实验1/TCP/Server/Debug/client.obj
实验1/TCP/Server/Debug/vc60.idb
实验1/TCP/Server/Debug/vc60.pdb
实验1/TCP/Server/ReadMe.txt
实验1/TCP/Server/Server.cpp
实验1/TCP/Server/Server.dsp
实验1/TCP/Server/Server.dsw
实验1/TCP/Server/Server.ncb
实验1/TCP/Server/Server.opt
实验1/TCP/Server/Server.plg
实验1/TCP/Server/StdAfx.cpp
实验1/TCP/Server/StdAfx.h
实验1/TCP/client/
实验1/TCP/client/._client.cpp
实验1/TCP/client/Debug/
实验1/TCP/client/Debug/client.exe
实验1/TCP/client/Debug/client.ilk
实验1/TCP/client/Debug/client.obj
实验1/TCP/client/Debug/client.pch
实验1/TCP/client/Debug/client.pdb
实验1/TCP/client/Debug/vc60.idb
实验1/TCP/client/Debug/vc60.pdb
实验1/TCP/client/ReadMe.txt
实验1/TCP/client/StdAfx.cpp
实验1/TCP/client/StdAfx.h
实验1/TCP/client/client.cpp
实验1/TCP/client/client.dsp
实验1/TCP/client/client.dsw
实验1/TCP/client/client.ncb
实验1/TCP/client/client.opt
实验1/TCP/client/client.plg
实验1/UDP/
实验1/UDP/Server/
实验1/UDP/Server/._Server.cpp
实验1/UDP/Server/Debug/
实验1/UDP/Server/Debug/Server.exe
实验1/UDP/Server/Debug/Server.ilk
实验1/UDP/Server/Debug/Server.obj
实验1/UDP/Server/Debug/Server.pch
实验1/UDP/Server/Debug/Server.pdb
实验1/UDP/Server/Debug/StdAfx.obj
实验1/UDP/Server/Debug/client.obj
实验1/UDP/Server/Debug/vc60.idb
实验1/UDP/Server/Debug/vc60.pdb
实验1/UDP/Server/ReadMe.txt
实验1/UDP/Server/Server.cpp
实验1/UDP/Server/Server.dsp
实验1/UDP/Server/Server.dsw
实验1/UDP/Server/Server.ncb
实验1/UDP/Server/Server.opt
实验1/UDP/Server/Server.plg
实验1/UDP/Server/StdAfx.cpp
实验1/UDP/Server/StdAfx.h
实验1/UDP/client/
实验1/UDP/client/._client.cpp
实验1/UDP/client/Debug/
实验1/UDP/client/Debug/Server.obj
实验1/UDP/client/Debug/client.exe
实验1/UDP/client/Debug/client.ilk
实验1/UDP/client/Debug/client.obj
实验1/UDP/client/Debug/client.pch
实验1/UDP/client/Debug/client.pdb
实验1/UDP/client/Debug/vc60.idb
实验1/UDP/client/Debug/vc60.pdb
实验1/UDP/client/ReadMe.txt
实验1/UDP/client/StdAfx.cpp
实验1/UDP/client/StdAfx.h
实验1/UDP/client/client.cpp
实验1/UDP/client/client.dsp
实验1/UDP/client/client.dsw
实验1/UDP/client/client.ncb
实验1/UDP/client/client.opt
实验1/UDP/client/client.plg
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.