freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

computernetworks-資料下載頁

2025-07-15 18:12本頁面
  

【正文】 uff[0] == 39。\r39。 amp。amp。 buff[1] == 39。\n39。) break。 } 2022/8/12 67 /* check for unexpected end of file */ if (n 1) { (void) send_eof(conn)。 continue。 } /* check for a request that we cannot understand */ if (strcmp(cmd, GET) || (strcmp(vers, HTTP/) amp。amp。 strcmp(vers, HTTP/))) { send_head(conn, 400, strlen(ERROR_400))。 (void) send(conn, ERROR_400, strlen(ERROR_400),0)。 (void) send_eof(conn)。 continue。 } 2022/8/12 68 /* send the requested web page or a not found error */ if (strcmp(path, /) == 0) { send_head(conn, 200, strlen(HOME_PAGE))。 (void) send(conn, HOME_PAGE, strlen(HOME_PAGE),0)。 } else if (strcmp(path, /time) == 0) { if defined(LINUX) || defined(SOLARIS) gettimeofday(amp。tv, NULL)。 timestr = ctime(amp。)。 elif defined(WIN32) time(amp。tv)。 timestr = ctime(amp。tv)。 endif (void) sprintf(buff, TIME_PAGE, timestr)。 send_head(conn, 200, strlen(buff))。 (void) send(conn, buff, strlen(buff), 0)。 } else { /* not found */ send_head(conn, 404, strlen(ERROR_404))。 (void) send(conn, ERROR_404, strlen(ERROR_404),0)。 } (void) send_eof(conn)。 } } 2022/8/12 69 /* * send_head send an HTTP header with given status and contentlen * */ void send_head(connection conn, int stat, int len) { char *statstr, buff[BUFFSIZE]。 /* convert the status code to a string */ switch(stat) { case 200: statstr = OK。 break。 case 400: statstr = Bad Request。 break。 case 404: statstr = Not Found。 break。 2022/8/12 70 default: statstr = Unknown。 break。 } /* * send an HTTP/ response with Server, ContentLength, * and ContentType headers. */ (void) sprintf(buff, HTTP/ %d %s\r\n, stat, statstr)。 (void) send(conn, buff, strlen(buff), 0)。 (void) sprintf(buff, Server: %s\r\n, SERVER_NAME)。 (void) send(conn, buff, strlen(buff), 0)。 (void) sprintf(buff, ContentLength: %d\r\n, len)。 (void) send(conn, buff, strlen(buff), 0)。 2022/8/12 71 (void) sprintf(buff, ContentType: text/html\r\n)。 (void) send(conn, buff, strlen(buff), 0)。 (void) sprintf(buff, \r\n)。 (void) send(conn, buff, strlen(buff), 0)。 } 2022/8/12 72 Example Code Using API: Webserver 2022/8/12 73 Webserver (2 of 6) 2022/8/12 74 Webserver (3 of 6) 2022/8/12 75 Webserver (4 of 6) 2022/8/12 76 Webserver (5 of 6) 2022/8/12 77 Webserver (6 of 6) 2022/8/12 78 Summary ? 學習網(wǎng)絡知識非常重要 – 世界是互連的 – 應用程序在分布的環(huán)境中工作 ? 本課程 – 解釋神秘的網(wǎng)絡幕后工作原理 – Will be hard work 2022/8/12 79 Summary (continued) ? 計算機網(wǎng)絡的三個任務 – 將數(shù)據(jù)從源 deliver到目標 – 自動尋找優(yōu)化路徑 – 處理 deliver過程中發(fā)生的錯誤 ? 我們將學習這三大 “ 不可能完成的任務 ” 是如何完成的。
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1