Description: 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.
To Search:
File list (Check if you may need any files):
实验1
.....\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
.....\...\......\.....\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