摘要:介紹在Linux操作系統(tǒng)環(huán)境下Socket網(wǎng)絡(luò)編程的原理、流程和最終實(shí)現(xiàn)。編程采用客戶端/服務(wù)器模式。提出解決多個(gè)客戶端連接服務(wù)器時(shí)無(wú)法處理I/0多路復(fù)用問(wèn)題的方法。提出通過(guò)最小化報(bào)文傳輸來(lái)減少傳輸時(shí)廷,為Bandwidth Delay Product調(diào)節(jié)TCP窗口,實(shí)現(xiàn)充分利用帶寬提高Linux的Socket性能。在實(shí)際網(wǎng)絡(luò)傳輸環(huán)境復(fù)雜多變的情況下,達(dá)到優(yōu)化網(wǎng)絡(luò)傳輸性能的目的。關(guān)鍵詞:linux;性能優(yōu)化;Socket;select()1引言隨著Internet的日益發(fā)展和普及,網(wǎng)絡(luò)在嵌入式系統(tǒng)中應(yīng)用非常廣泛,越來(lái)越多的嵌入式設(shè)備采用Linux操作系統(tǒng)。Linux是一個(gè)源代碼公開(kāi)的免費(fèi)操作系統(tǒng),具有強(qiáng)移植性",所以對(duì)基于Linux的Socket網(wǎng)絡(luò)編程的研究越來(lái)越重要。2Socket簡(jiǎn)介在Linux中的網(wǎng)絡(luò)編程通過(guò)Socket接口進(jìn)行,是一種特殊的I/O,也是一種特殊的文件描述符。Socket是使用標(biāo)準(zhǔn)Linux文件符(file descriptor)和其他程序通信的方式。這里Socket 編程采用客戶/服務(wù)器模式如圖1所示。
標(biāo)簽: linux socket 網(wǎng)絡(luò)編程
上傳時(shí)間: 2022-06-23
上傳用戶:
Legal Disclaimer Lenze Semiconductor reserves the right to make changes without further notice to any products herein to improve reliability, function or design. Lenze Semiconductor disclaims any and all liability for any errors, inaccuracies or incompleteness contained herein or in any other disclosure relating to any product.Lenze Semiconductor does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights, nor the rights of others The products shown herein are not designed for use in medical, life-saving, or life-sustaining applications. Customers using or selling Lenze Semiconductor products not expressly indicated for use in such applications do so entirely at their own risk and agree to fully indemnify Lenze Semiconductor for any damages arising or resulting from such use or sale.
上傳時(shí)間: 2022-06-25
上傳用戶:
nordic,芯片,規(guī)格nordic,芯片規(guī)格書(shū)nRF52832 Product Specification v1.4
上傳時(shí)間: 2022-06-26
上傳用戶:
1. General Description BL-M3362NS1 product is designed base on Broadcom BCM43362 chipset. It operates at 2.4GHz band and supports IEEE802.11b/g/n 1T1Rwith wireless data rate up to 72.2Mbps. It supports IEEE802.11isafety protocol, along with IEEE802.11e standard service quality. It supports standard interfaces SDIOV2.0(50 MHz,4-bit and1-bit) and generic SPI(up to 50 MHz), Integrated ARM Cortex?-M3 CPUwith on-chip memory enables running IEEE802.11 firmware that can be field-upgraded with future features.2. The range of applying Imaging platforms(printers, digital still cameras, digital picture frames)Consumer electronic devices(DTV, DVDplayers, Blu-ray players. etc.)Gaming platforms Carinformation MiFi/Mobile Routes Smart PAD Set-TopBoxes
標(biāo)簽: wifi
上傳時(shí)間: 2022-07-04
上傳用戶:
VIP專區(qū)-嵌入式/單片機(jī)編程源碼精選合集系列(156)資源包含以下內(nèi)容:1. 《嵌入式應(yīng)用程序開(kāi)發(fā)綜合試驗(yàn)9例》含有9個(gè)嵌入式應(yīng)用實(shí)踐源程序。.2. NiosII NiosII!! SOPC CRC32 SOPC SOPC 自定義外設(shè).3. 一個(gè)電話本的程序.4. 嵌入式minigui 中自定義控件的應(yīng)用實(shí)例。不下后悔!.5. minigui 時(shí)間控件的使用方法.6. 嵌入式linux 設(shè)備驅(qū)動(dòng)程序.7. uart-I2C, working on PIC18F2420.8. 基于mips cpu,在u-boot系統(tǒng)下磁盤(pán)驅(qū)動(dòng)程序。.9. 可以應(yīng)用到IAR EWARM-EV V5.20破解 使用方法: 1:首先用iarid.exe產(chǎn)生ID 2:使用iarkg.exe產(chǎn)生lic文件.10. 嵌入式開(kāi)發(fā)前景和趨勢(shì).11. 嵌入式視頻有下載器下載方法及一些基本的調(diào)試技巧。.12. 同濟(jì)大學(xué)嵌入式學(xué)習(xí)文檔.13. 轉(zhuǎn)載其他網(wǎng)站的資料與大家分享.14. LED點(diǎn)陣顯示屏掃描程序.15. altera公司開(kāi)發(fā)銷售的DE2開(kāi)發(fā)平臺(tái)原理圖.16. 基于飛斯卡爾MC9S08QG8的基本程序開(kāi)發(fā)代碼.17. 本程序中用到DS1302以及液晶等模塊.18. 一個(gè)垃圾壓縮車(chē)的PLC程序。采用X端口作為模擬量轉(zhuǎn)換后的數(shù)據(jù)量輸入口。這種方法不需要買(mǎi)模擬量模塊.19. 這是一個(gè)信號(hào)發(fā)生器得程序.20. 這個(gè)程序可以用作寄存器的使用.21. FAT32文件應(yīng)用.22. 電源管理代碼 基于linux2.6.10!apm方式的電源管理!很好的資料!做arm平臺(tái)使用.23. I2C zongxian 總線 親自編譯.24. 用Verilog 實(shí)現(xiàn)將比特流數(shù)據(jù)轉(zhuǎn)化為SPI協(xié)議數(shù)據(jù)的適配器.25. 最新F2系列的部分外圍模塊中文PDF,來(lái)自USER GUIDE的翻譯.26. 單詞計(jì)算器,可以統(tǒng)計(jì)你輸入的單詞的字母數(shù)有多少個(gè)等多個(gè)程序.27. FIBER AND wire product designed guider..28. xilin,ise_9.01的使用.29. ISE、Keil_C.30. 一本不錯(cuò)的數(shù)字圖像處理書(shū)(岡薩雷斯中文版)總共有三個(gè)壓縮文件需要放在一起解壓縮.31. miniARM嵌入式web主程序,需要在運(yùn)行miniarm.32. 單片機(jī)操作ocmj12232c-1屏的源代碼.33. ISP1582 原理圖.34. x-wrt is the GUI config tool for openwrt,which is a open project about wireless Router.35. 首先介紹了合成孔徑雷達(dá)(SAR)的特點(diǎn).36. tms320vc5509a usb boot.37. 基于Altera fpga 的軟核 nios2的串口調(diào)試代碼.38. cip51 i2c.39. 此源碼為ocm12864系列字符液晶顯示模塊KEIL uVision3 for ARM.40. 此源碼為KEIL uVision3 for ARM 的ocm12864系列字符液晶顯示模塊。.
上傳時(shí)間: 2013-06-27
上傳用戶:eeworm
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1