-
client-server
多协议文件传输c/s网络应用设计与实现,程序用 TCP/UDP 两个协议模拟多协议服务器。首先服务器端要将两种协议的套接字创建好,并且监听 TCP 端口的连接。必要时使用select函数来进行多连接处理和非阻塞处理。而客户端直接可以按照发送的地址和端口号来进行通讯。
首先要运行服务器端,服务器会监听 TCP 端口。然后运行客户端,根据事先设定好的 IP和端口,就可以进行连接传输数据了。
程序实现的关键步骤:
以TCP协议为例
服务器端:
1.创建套接字;2.绑定端口;3.进入无穷的循环;4.接收请求;5.处理请求;6.应答。
客户端:
1.找到服务器的IP地址和协议的端口号;2.创建套接字;3.确定连接需要任意的,没有使用的端口号允许TCP去选择一个;4.将套接字和服务器连接;5.使用应用层协议和服务器交互;6.关闭连接。
(Multi-protocol file transfer c/s network application design and implementation of programs simulate multi-protocol server with TCP/UDP both protocols. First socket server to create a good two protocols, TCP port and listens for connections. If necessary, use the function to handle multiple connections and non-blocking treatment. And the client can follow directly address and port number to communicate.
First run on the server side, the server listens on TCP port. Then run the client, according to pre-configured IP and port, you can connect the data transmission.
The key step program implementation:
In TCP protocol as an example
Service-Terminal:
1. Create a socket 2 bound port 3 enter an infinite loop 4. receiving a request 5. processing requests 6 response.
Clients:
1. Locate the server s IP address and protocol port number 2 creates a socket 3 connections need to determine arbitrary, unused port allows TCP to choose a 4 and the socket server connections 5 using appli)
- 2016-07-11 10:19:07下载
- 积分:1
-
PEMFC
PEMFC的simulink使用模型 包含电堆模型 氢气氧气供应系统模型,热传输模型,可进行仿真,参数可自行设置。(The simulink model of the PEMFC includes a model of a hydrogen reactor, an oxygen supply system model, and a heat transfer model that can be simulated and the parameters can be set.)
- 2021-04-02 17:09:07下载
- 积分:1
-
TestNetCard
禁用网卡以及恢复的程序:可以模拟硬件管理器中的停用和启用功能(仅对网卡)(banned card and recovery procedures : can simulate hardware management for the suspension and the opening function (LAN only))
- 2005-04-08 15:42:04下载
- 积分:1
-
StressMark压力测试程序
StressMark测试软件是一个使用Visual C++编写的,开放源代码的测试工具,可以完成服务程序及重要算法的功能和性能测试,其最主要的功能是模拟多线程或多客户端的自动化压力测试。(StressMark test software is a Visual C prepared in the open-source testing tool, service procedures to be completed and important algorithm functional and performance tests, its main function is simulated multi-threaded or multi-client automation pressure tests.)
- 2005-05-02 02:44:47下载
- 积分:1
-
17501500
用VC写的界面编程,可实现用图形纹理的设计,()
- 2018-02-24 23:36:04下载
- 积分:1
-
senda-recv-file
socket 客户端和服务端发送和接收文件的源代码(the source code of socket in order to send and receive file)
- 2015-05-12 10:37:50下载
- 积分:1
-
RawSocket
说明: 网络安全编程,VC++环境,原始套接字,源代码文件,某些系统可能不支持原始套接字,这只是一个原理性的说明(Network security programming, VC++ environment, raw sockets, source code files, some systems may not support raw sockets, this is only a schematic description of)
- 2010-03-27 20:40:30下载
- 积分:1
-
Phrack-Magazine
phrack有什么nb的地方:有人问我成为nb黑客(不是骇客)的捷径是什么?我发现这里面可以细分为:1.谁是nb的黑客? 我的答案是phrack杂志上每个领域发表开拓性文章的人; 2.如何成为nb的黑客? 我的答案是把phrack杂志大部分文章用几年时间全部真正弄懂 --不看文章,不查资料能把例子实现一遍,还能改--xscan作者(What place phrack nb: nb what I was asked to become a hacker (not a hacker) is a shortcut? I found that there can be subdivided into: (1) Who is nb hackers? My answer is to explore every area of published journal articles on phrack people 2 nb how to become a hacker? My answer is that most of the phrack magazine article a few years time all truly understand- do not look at the article, the example does not check the information can achieve it again, but also to change- xscan author)
- 2014-01-13 18:06:16下载
- 积分:1
-
WinSockUDP
VC UDP通讯,后台服务器
FileMana.cpp
FileMana.h
Login.cpp
Login.h
resource.h
SocketUdp.cpp
SocketUdp.h
StdAfx.cpp
StdAfx.h
WinSockUDP.aps
WinSockUDP.clw
WinSockUDP.cpp
WinSockUDP.dsp
WinSockUDP.dsw
WinSockUDP.h
WinSockUDP.ncb
WinSockUDP.opt
WinSockUDP.plg
WinSockUDP.rc
WinSockUDP.sln
WinSockUDP.vcproj
WinSockUDP.vcproj.T400-CKX.Administrator.user
WinSockUDPDlg.cpp
WinSockUDPDlg.h( FileMana.cpp
FileMana.h
Login.cpp
Login.h
resource.h
SocketUdp.cpp
SocketUdp.h
StdAfx.cpp
StdAfx.h
WinSockUDP.aps
WinSockUDP.clw
WinSockUDP.cpp
WinSockUDP.dsp
WinSockUDP.dsw
WinSockUDP.h
WinSockUDP.ncb
WinSockUDP.opt
WinSockUDP.plg
WinSockUDP.rc
WinSockUDP.sln
WinSockUDP.vcproj
WinSockUDP.vcproj.T400-CKX.Administrator.user
WinSockUDPDlg.cpp
WinSockUDPDlg.h)
- 2012-05-24 14:41:07下载
- 积分:1
-
IOCPScalableServer
该代码展示了如何利用完成端口配合异步I/O开发可扩展服务端。(The code demonstrates how to complete port with the use of asynchronous I/O can be expanded development of the server.)
- 2007-06-19 17:55:21下载
- 积分:1