Description: Experiment 3 TCP and UDP sockets integrated application
Requirements: (1) TCP, UDP
(2) C/S
(3) multi-threaded programming
Abstract: Designing a simple client/server, concurrent UDP communication while responding to customer requirements, but also to respond to the client sent, TCP communication requirements.
TCP Client:
Create a stream socket client initiates TCP connection to the server.
After the connection is successfully created, sustained over a socket send or receive data to the server.
(3) Input or receiving the command end , the end of the send and receive data, and disconnect the server.
UDP Client:
(1) client creates a datagram socket, issuing a time command to the server via the socket for the server system time.
(2) receives the server returns the time, update the client system time.
(3) Disconnect the server.
Server:
For TCP client, the services provided are
To Search:
File list (Check if you may need any files):
多线程\Server\._Server.cpp
......\......\ReadMe.txt
......\......\Server.cpp
......\......\Server.dsp
......\......\Server.dsw
......\......\Server.ncb
......\......\Server.plg
......\......\StdAfx.cpp
......\......\StdAfx.h
......\......\Debug\Server.exe
......\......\.....\Server.ilk
......\......\.....\Server.pdb
......\......\.....\Server.sbr
......\......\.....\vc60.idb
......\......\.....\vc60.pdb
......\......\.....\Server.pch
......\......\.....\Server.obj
......\......\.....\Server.bsc
......\......\Server.opt
......\TCP_client\._client.cpp
......\..........\client.cpp
......\..........\client.dsp
......\..........\client.dsw
......\..........\client.ncb
......\..........\client.plg
......\..........\ReadMe.txt
......\..........\StdAfx.cpp
......\..........\StdAfx.h
......\..........\Debug\client.exe
......\..........\.....\client.ilk
......\..........\.....\client.obj
......\..........\.....\client.pch
......\..........\.....\client.pdb
......\..........\.....\Server.obj
......\..........\.....\vc60.idb
......\..........\.....\vc60.pdb
......\..........\client.opt
......\UDP_client\._client.cpp
......\..........\client.cpp
......\..........\client.dsp
......\..........\client.dsw
......\..........\client.ncb
......\..........\client.plg
......\..........\ReadMe.txt
......\..........\StdAfx.cpp
......\..........\StdAfx.h
......\..........\Debug\client.exe
......\..........\.....\client.ilk
......\..........\.....\client.pdb
......\..........\.....\vc60.idb
......\..........\.....\vc60.pdb
......\..........\.....\client.pch
......\..........\.....\client.obj
......\..........\client.opt
......\Server\Debug
......\TCP_client\Debug
......\UDP_client\Debug
......\Server
......\TCP_client
......\UDP_client
多线程