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

正文內(nèi)容

畢業(yè)設(shè)計(jì)-簡(jiǎn)易代理服務(wù)器的設(shè)計(jì)—論文(參考版)

2024-12-05 17:42本頁(yè)面
  

【正文】 s loving our neighbor better than ourselves, and I like it, said Meg, as they set out their presents while their mothe r was upstairs collecting clothes for the poor Hummels. Not a very splendid show, but there was a great deal of love done up inster an encouraging pat on the shoulder as they parted for the day, each going a different way, each hugging her little warm turnover, and each trying to be cheerful in spite of wintry weather, hard work, and the unsatisfied desires of pleasure loving youth. When Mr. March lost his property in trying to help an unfortunate friend, the two oldest girls begged to be allowed to do something toward their ow n support, at least. Believing that they could not begin too early to cultivate energy, industry, and independence, their parents consented, and both fell to work with the hearty good will which in spite of all obstacles is sure to succ eed at last. Margaret found a place as nursery governess and felt rich with her small salary. As she said, she was `fond of luxury 39。 ever since she was born. That was a very happy breakfast, though they didn39。m so glad you came before we began! May I go and help carry the things to the poor little children? asked Beth eagerly. I shall take the cream and the muffings, added Amy, heroically giving up the article she most liked. Meg was already covering the buckwheats, and piling the bread into one big plate. I thought you39。m so glad, for mine is the handsomest now. Another bang of the street door sent the basket under the sofa, and the girls to the table, eager for breakfast. Merry Christmas, Marmee! Many of them! Thank you for our books. We read some, and mean to every day, they all cried in chorus. Merry Christmas, little daughters! I39。m truly trying not to be selfish any more. As she spoke, Amy showed the handsome flask w hich replaced the cheap one, and looked so earnest and humble in her little effort to fet herself that Meg hugged her on the spot, and Jo pronounced her `a trump39。t laugh at me, Jo! I didn39。s all right, dear, and a very pretty idea, quite sensible too, for no one can ever mistake now. It will please her very m uch, I know, said Meg, with a frown for Jo and a smile for Beth. There39。t want anyone to use these but Marmee, said Beth。t that right? I thought it was better to do it so, because Meg39。 on them instead of `M. March39。t they? Hannah washed and ironed them for me, and I marked them all myself, said Beth, looking proudly at the somewhat uneven letters which had cost her such labor. Bless the child! She39。 除非另有科研合同和其他法律文書的制約,本論文的科研成果屬于成都信息工程學(xué)院。 ( 4)學(xué)校可允許學(xué)位論文被查閱或借閱。 ( 2)學(xué)??梢圆捎糜坝?、縮印或其他復(fù)制方式保存學(xué)位論文。除非另有說(shuō)明,本文的工作是原始性工作。在此向他表示我最衷心的感謝! 在論文完成過(guò)程中,本人還得到了秦老師和邱發(fā)明同學(xué)的熱心幫助,本人向他們表示深深的謝意! 最后向在百忙之中評(píng)審本文的各位專家、老師表示衷心的感謝! 作者簡(jiǎn)介: 姓 名:蔣專 性別:男 出生年月: 1984 年 7月 民族:漢 Email: 第 20 頁(yè) 共 20頁(yè) 聲 明 本論文的工作是 2021年 2月至 2021年 6月在成都信息工程學(xué)院網(wǎng)絡(luò)工程系完成的。 [7] 孔鵬 .完全自學(xué)手冊(cè) Visual C++ [M].北京:機(jī)械工業(yè)出版社 ,2021。 [5] 孫青 .代理服務(wù)器安裝配置與應(yīng)用 [M]. 北京: 冶金工業(yè)出版社 ,2021。 [3] 汪曉平 ,劉韜 .Visual C++ 開(kāi)發(fā)網(wǎng)絡(luò)典型應(yīng)用實(shí)例導(dǎo)航 [M].北京:人民郵電出版社 ,2021。 第 18 頁(yè) 共 20頁(yè) 參考文獻(xiàn) [1] 李凌 .Winsock2網(wǎng)絡(luò)編程實(shí)用教程 [M].北京:清華大學(xué)出版社 ,2021。它不具備良好的用戶界面,由于緩存的設(shè)置可能導(dǎo)致程序溢出。代理服務(wù)器作為客戶端 /服務(wù)器的聯(lián)系紐帶,實(shí)現(xiàn)了接收和解釋客戶端的請(qǐng)求,能夠創(chuàng)建到服務(wù)器的新連接,能收服務(wù)器發(fā)來(lái)的響應(yīng),發(fā)出和解釋服務(wù)器的響應(yīng)并將該響應(yīng)傳回給客戶端等系統(tǒng)必須的功能。這時(shí)客戶端的瀏覽器的請(qǐng)求轉(zhuǎn)向我們的代理服務(wù)程序,代理程序轉(zhuǎn)發(fā)請(qǐng)求給 baidu 服務(wù)器,并從它那兒取回?cái)?shù)據(jù),顯示在瀏覽器上,結(jié)果如下: 圖 7 通過(guò)代理的數(shù)據(jù)請(qǐng)求結(jié)果 可見(jiàn),我們?cè)O(shè)計(jì)的簡(jiǎn)易代理服務(wù)程序成功完成了目標(biāo)。接下來(lái),需要將 IE瀏覽器“屬性” “連接” “局域網(wǎng)設(shè)置” “代理服務(wù)器”中,服務(wù)器地址填入本機(jī) IP地址,端口就填入我們上面設(shè)定的 2021,確定后完成客戶端代理服務(wù)器的設(shè)置。 5 測(cè)試結(jié)果 完成程序的代碼編寫,通過(guò)調(diào)試,修改出現(xiàn)的問(wèn)題后,將 設(shè)計(jì) 的程序通過(guò)“ Build”菜單,選擇 “ Rebuild All” 菜 單項(xiàng)重新編譯程序,再通過(guò)“ Ctrl+F5” 命令生成 .EXE 的執(zhí)行程序。) break。 if(getchar()==39。 if(port1024){ cout注意 1~1024 是保留端 口號(hào),使用有可能會(huì)引起端口沖突 !endl。實(shí)現(xiàn)如下: cout請(qǐng)?jiān)O(shè)置代理服務(wù)器端口號(hào) ...endlPort:。 用 StartProxy()啟動(dòng)服務(wù)后可以讓程序準(zhǔn)備接收一個(gè)字符,根據(jù)字符判斷代理服務(wù)器是否要主動(dòng)關(guān)閉。首先用 closesocket(listen_socket)關(guān)閉套接字 句柄 ,再用 WSACleanup()來(lái)釋放分配給指定應(yīng)用程序的資源 。 endif 當(dāng)完成這步這后,我們程序也就差不多設(shè)計(jì)好了,一個(gè)嚴(yán)謹(jǐn)?shù)某绦騿T應(yīng)該做好程序的掃尾工作,需最后完成客戶端、代理服務(wù)器和代理服務(wù)器、服務(wù)器的套接字關(guān)閉工作,設(shè)定它們的狀態(tài)為關(guān)閉。 ifdef _DEBUG Buffer[Len]=0。 pParpPairStateClitoProClosed=TRUE。 fprintf(stderr,send() failed: error %d\n,WSAGetLastError())。 } 最后是將這些數(shù)據(jù)信息 send 給客戶機(jī),使用 send 命令發(fā)送數(shù)據(jù)給客戶端,成功時(shí)返回接收的字節(jié)數(shù),錯(cuò)誤時(shí)顯示出錯(cuò)信息,并關(guān)閉代理服務(wù)器到客戶端的連接套接字,設(shè)置連接狀態(tài)為關(guān)閉。 pParpPairStateProtoSerClosed=TRUE。 if (retval == 0) { printf(Server closed connection\n)。 break。 closesocket(conn_socket)。 retval = recv(conn_socket,Buffer,sizeof (Buffer),0 )。 return 1。 conn_socket = socket(AF_INET,socket_type,0); 打開(kāi)一個(gè) socket,如果打開(kāi)失敗,顯示錯(cuò)誤信息,關(guān)閉代理服務(wù)器到服務(wù)器的連接狀態(tài), if (conn_socket 0 ) 第 14 頁(yè) 共 20頁(yè) { fprintf(stderr,Client:Error Opening socket: Error %d\n,WSAGetLastError())。 = htons(port)。(),hph_addr,hph_length)。server,0,sizeof(server))。 } 有了解析后的地址信息后,下一步,將這些信息拷貝給 sockaddr_in 結(jié)構(gòu)。 ::SetEvent(pParH_StateProToSvr)。如果 server 的地址是字母類型的,就使用 gethostbyname( server_name)函數(shù) 返回對(duì)應(yīng)于給定主機(jī)名的主機(jī)信息 (把 IP地址串當(dāng)作一個(gè)未知主機(jī)名同樣處理 );否則,應(yīng)用 i_addr( server_name) 把地址串轉(zhuǎn)換為 IP 地址 ,再用 gethostbyaddr 得到 hostent結(jié)構(gòu) 賦值給 hp 指針。 socket_type = SOCK_STREAM。 server_name = pParAddress。 struct sockaddr_in server。首先要做數(shù)據(jù)服務(wù)器 Server主機(jī)地址信息的轉(zhuǎn)換,定義一 個(gè) hostent 結(jié)構(gòu)變量 *hp來(lái)保存。 printf(\n Received %d bytes,data[%s] from client\n,retval,Buffer)。 Len=retval。 如果返回的字節(jié)數(shù)為零,表示客戶端關(guān)閉連接,此時(shí)也應(yīng)關(guān)閉客戶端到代理服務(wù)器的套接字,設(shè)置連接狀態(tài)為關(guān)閉。直到接下來(lái)的處理不出錯(cuò)為止。 =TRUE。 printf(\n send() failed:error%d\n,WSAGetLastError())。 在剛才的處理線程中,如果代理服務(wù)器、 Server 以及客戶端、代理服務(wù)器端的連接沒(méi)有關(guān)閉,就使用 send 命令發(fā)送請(qǐng)求數(shù)據(jù)給數(shù)據(jù)服務(wù)器( Server),成功時(shí)返回接收的字節(jié)數(shù),錯(cuò)誤時(shí)顯示出錯(cuò)信息,并關(guān)閉代理服務(wù)器到 Server的連接套接字,設(shè)置連接狀態(tài)為關(guān)閉,直到接下來(lái)的處理不出錯(cuò)為止。 至此,啟動(dòng)一個(gè)新的子線程,用于處理代理服務(wù)器和數(shù)據(jù)服務(wù)器間的數(shù)據(jù)傳輸。 這里 strstr 調(diào)用用于在 字符串 buf 中尋找 第一次出現(xiàn)的位置( 它 不會(huì) 比較結(jié)束符 NULL),將值賦給指針 p。proto 保存協(xié)議。 由于客戶端在連接時(shí),都會(huì)和代理服務(wù)器連接,發(fā)出請(qǐng)求,一般為 mand url(//GET == GET / )形式 ,定義buf用于存儲(chǔ)接收到的請(qǐng)求字符串 。 第 12 頁(yè) 共 20頁(yè) 下面的一步,需要把這些數(shù)據(jù)信息傳給 Server。 closesocket()。 =TRUE。 if(retval==SOCKET_ERRO
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1