Description: Please write a basic connectionless-oriented socket SOCKET C/S communication program. The problem is the server side, the program' s requirements are: to create a datagram type socket, and with the local bind port 20005, waiting for the client sent an int data, receive data, this int integer output, and determine whether it is a prime number (with 0 and 1 to determine the results indicated that 0 means " no" , a " yes" ), and then judge the outcome back to the other side, the last socket is closed, exit the system.
To Search:
File list (Check if you may need any files):
test1\test.txt
.....\....\ListenSock.cpp
.....\....\ListenSock.h
.....\....\ReadMe.txt
.....\....\Resource.h
.....\....\StdAfx.cpp
.....\....\StdAfx.h
.....\....\test.aps
.....\....\test.clw
.....\....\test.cpp
.....\....\test.dsp
.....\....\test.dsw
.....\....\test.h
.....\....\test.ncb
.....\....\test.opt
.....\....\test.plg
.....\....\test.rc
.....\....\testDlg.cpp
.....\....\testDlg.h
.....\....\WorkSock.cpp
.....\....\WorkSock.h
.....\....\res\test.ico
.....\....\...\test.rc2
.....\....\Debug\ListenSock.obj
.....\....\.....\StdAfx.obj
.....\....\.....\test.obj
.....\....\.....\test.pch
.....\....\.....\test.res
.....\....\.....\vc60.idb
.....\....\.....\vc60.pdb
.....\....\res
.....\....\Debug
.....\test
test1