-
熟悉Http协议的请求和响应格式,编写一个简单的Http服务器。
基本要求:
1 正确解析Http请求,实现简单的GET请求回应。
2 模拟...
熟悉Http协议的请求和响应格式,编写一个简单的Http服务器。
基本要求:
1 正确解析Http请求,实现简单的GET请求回应。
2 模拟一个对象(如:文件index.html)的GET回应(如:回应一个字符串),对于其他的对象,则根据Http响应格式回应对象不存在信息。
3 通过浏览器可检测自己的程序。如:输入http://the.ip.of.your.pc:serverPort/index.html,查看其响应结果。
4 对http请求的处理必须采用多进程实现,即主进程负责等待请求连接,每当收到一个请求后,产生一个子进程对该请求做单独处理,主进程继续等待新请求,子进程在处理完其请求后结束自己。详细要求参考课本要求。(多进程编程参考函数fork())
-Http familiar with the agreement of the request and response format, write a simple Http server.
Basic requirements:
Http parsing a proper request, to achieve a simple GET request to respond.
2 analog an object (such as: file index.html) of the GET response (such as: in response to a string), for other objects, then according to Http response format, the information to respond to the object does not exist.
3 can be detected through the browser s own procedures. Such as: Enter http://the.ip.of.your.pc:serverPort/index.html, see the results of its response.
4 pairs of http request processing must be used to achieve multi-process
- 2023-04-01 20:15:03下载
- 积分:1
-
一种局域网通讯工具,在局域网通信中,及时快速。包括源代码。
一个局域网信使工具,在局域网内通信,及时快速。包含源代码,可随意改动。-a LAN messenger tool in LAN communications, timely fast. Includes source code can be altered arbitrarily.
- 2023-08-14 07:35:02下载
- 积分:1
-
you want simple access to their machines? Tcpip, then under the bar, guaranteed...
你想简单的获得自己机器的tcpip吗,那就下这个吧,保证有好处,-you want simple access to their machines? Tcpip, then under the bar, guaranteed benefit,
- 2022-08-03 17:59:30下载
- 积分:1
-
API支持多个SP通过英斯克短信网关iDAP接入短信中心,向终端用户发送短消息。SP的应用程序需要遵循联通的SGIP1.1协议...
API支持多个SP通过英斯克短信网关iDAP接入短信中心,向终端用户发送短消息。SP的应用程序需要遵循联通的SGIP1.1协议-API supports multiple SP Intrinsic through SMS Gateway Center iDAP SMS access to end-users to send text messages. SP applications need to follow Unicom SGIP1.1 agreement
- 2022-02-14 02:49:52下载
- 积分:1
-
C #完全实现ping,示踪剂,traceroute,tracerouter,VS2005编译号…
完全用C#实现Ping、Tracer、Traceroute、Tracerouter,vs2005编译通过-Entirely of C# Achieve Ping, Tracer, Traceroute, Tracerouter, vs2005 compiler through
- 2022-08-18 03:21:44下载
- 积分:1
-
Use CSocket remote desktop functionality. Process a bit complicated, mainly the...
利用CSocket实现远程桌面功能。程序有点复杂,主要是CSocket的运用。 实现思路主要是:先将远程桌面捕获发回本地,然后在对话框中显示,将本地鼠标、键盘的动作变成命令输入,再发送到远程主机执行(实际上这一步是模拟出鼠标和键盘的操作),最后将远程桌面再次捕获发回本地,在对话框中显示出来。这样也就实现了系统自带的远程桌面的功能。-Use CSocket remote desktop functionality. Process a bit complicated, mainly the use of CSocket. To achieve the main idea is: first issued back to the local Remote Desktop Capture, and then in the dialog box shows that the local mouse and keyboard moves into a command input, and then sent to the remote host implementation (actually, this step is to simulate the mouse and keyboard operation), and finally re-captured the remote desktop back to the local, in the dialog box is displayed. This also enables the system comes with remote desktop functionality.
- 2022-08-13 07:08:03下载
- 积分:1
-
套接字实现TCP协议和试验数据通信使用…
利用套接字实现用TCP协议的数据通信并进行了测试通过-The use of sockets to achieve data communication with the TCP protocol and tested through
- 2023-01-27 17:10:04下载
- 积分:1
-
P2P c++ sdk
P2P dll c++ ,
static emReturnType SetAppType(emAppType AppType);//设置程序类型,服务器emAppType_Server或者客户端emAppType_Client
static emReturnType SetClientCallback(IMsgCallback *pMsgCallback);//设置回调类,回调类继承IMsgCallback接口
static emReturnType Startup();//开启网络
static emReturnType Cleanup();//关闭网络
//Server 以下函数是服务器调用
static emReturnType BeginService(unsigned short nPort);//如果是服务器,调用该函数开启服务,nPort:端口号
static emReturnType EndService();//服务器退出的时候,调用该函数关闭服务
//Client 以下函数是客户端调用
static emReturnType Logon(LOGONINFO* pLogonInfo);//函数登录服务器。pLogonInfo:登录信息,详细见P2PHeaderDef.h->LOGONINFO
static emReturnType Logout();//登出服务器
static emReturnType ConnectAnchor(CLIENTINFO* pClientInfo);//连接主播,该函数是用户调用
static emReturnType SendP2PMSG(CLIENTINFO* pClientInfo, char* pszMsg, int nMsgLen);//发送P2P消息,pClientInfo,要发送的客户信息,如果是用户,则pClientI
- 2022-02-03 19:54:38下载
- 积分:1
-
unsustainable under the agreement, users send frames, will first interception Ch...
非持续CSMA
该协议下,用户在发送帧之前,会先侦听信道的状况,如果没有其他站点发送,它就发送。若信道忙,它就等待一个随机的时间后重复以上动作。
对于某一帧而言,信道是否忙,即是看其绝对时间(FRAMETIME*i+dt)的前一帧时内(FRAMETIME*(i-1)+dt ~ FRAMETIME*i+dt)是否存在发送帧。若无则发送,有则等待一随机时间。
-unsustainable under the agreement, users send frames, will first interception Channel situation, if no other site sent, it sent. If Channel busy, it would wait for a random time to repeat the action. For a frame, whether the busy channel, that is, look at his absolute time (FRAMETIME* i dt) of a time (FRAMETIME* (i-1) dt ~ FRAMETIME dt* i) the existence of this frame. If not then this, then wait for a random time.
- 2022-03-16 02:26:57下载
- 积分:1
-
check mail server mail information source code (support SOC), the great value
查邮件服务器邮件信息源代码(支持SOC),很有价值
- 2022-01-25 23:57:16下载
- 积分:1