文件名称:test1
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.71mb
- 下载次数:
- 0次
- 提 供 者:
- j**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
请编写一个面向无连接的基本SOCKET套接字的C/S通信程序。本题属于其服务器端,程序的要求是:创建一个数据报式套接字,并与本地的20005号端口进行绑定,等待客户端发来的一个int数据,收到数据后,将这个int整数输出,并判断它是否为一个素数(判断结果用0和1表示,0表示“否”, 1表示“是”),然后将判断结果回送给对方,最后关闭套接字,退出系统。-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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
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
.....\....\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