基于完成端口的TCP網(wǎng)絡(luò)通信框架實(shí)現(xiàn) 工程iocp中包含了框架實(shí)現(xiàn)的所有代碼,工程server和client是對該框架的簡單測試 和應(yīng)用。框架實(shí)現(xiàn)了基于消息的TCP網(wǎng)絡(luò)通信,(避免了TCP的數(shù)據(jù)“粘連”問題)并進(jìn) 行了封裝,封裝后的界面iocpapi.h非常簡潔,應(yīng)用程序代碼只需要簡單包含 iocpapi.h,就可以實(shí)現(xiàn)自己的網(wǎng)絡(luò)應(yīng)用.具體例子可以參考server和client代碼提供 的兩個類分別用于服務(wù)器端和客戶端(一般來說客戶端不用管理大量連接,所以有點(diǎn) 殺雞用牛刀的味道,不過為了和服務(wù)器對應(yīng),應(yīng)該使用該客戶端,除非你自己實(shí)現(xiàn) 框架的消息格式)
上傳時間: 2013-12-29
上傳用戶:wpt
JXTA——Java P2P網(wǎng)絡(luò)編程技術(shù),最近,P2P(Peer-to-Peer)又成為了因特網(wǎng)上的一個熱點(diǎn)。P2P是因特網(wǎng)的一種應(yīng)用模式,其意思是指網(wǎng)絡(luò)上的任何設(shè)備(包括大型機(jī)、PC機(jī)、PDA、手機(jī)、機(jī)頂盒等等)都可以平等地直接進(jìn)行連接并進(jìn)行協(xié)作。想比當(dāng)前因特網(wǎng)上主流的應(yīng)用模式Client/Server或者Client/Service而言,P2P具有自己鮮明的特點(diǎn)和優(yōu)勢。(這也是我對它著迷的地方。
標(biāo)簽: JXTA Java P2P 網(wǎng)絡(luò)
上傳時間: 2015-10-15
上傳用戶:wys0120
j2me socket連接,運(yùn)行SocketMIDlet兩次打開server和client
上傳時間: 2015-11-07
上傳用戶:tuilp1a
一:需求分析 1. 問題描述 魔王總是使用自己的一種非常精練而抽象的語言講話,沒人能聽懂,但他的語言是可逐步解釋成人能聽懂的語言,因?yàn)樗恼Z言是由以下兩種形式的規(guī)則由人的語言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在這兩種形式中,從左到右均表示解釋.試寫一個魔王語言的解釋系統(tǒng),把 他的話解釋成人能聽得懂的話. 2. 基本要求: 用下述兩條具體規(guī)則和上述規(guī)則形式(2)實(shí)現(xiàn).設(shè)大寫字母表示魔王語言的詞匯 小寫字母表示人的語言的詞匯 希臘字母表示可以用大寫字母或小寫字母代換的變量.魔王語言可含人的詞匯. (1) B --> tAdA (2) A --> sae 3. 測試數(shù)據(jù): B(ehnxgz)B 解釋成 tsaedsaeezegexenehetsaedsae若將小寫字母與漢字建立下表所示的對應(yīng)關(guān)系,則魔王說的話是:"天上一只鵝地上一只鵝鵝追鵝趕鵝下鵝蛋鵝恨鵝天上一只鵝地上一只鵝". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鵝 | 追 | 趕 | 下 | 蛋 | 恨 |
上傳時間: 2014-12-02
上傳用戶:jkhjkh1982
一個Symbian平臺上的server\client模型的簡單示例,HTTP Server。Client端支持Server端的啟動與停止。
標(biāo)簽: serverclient Symbian 模型
上傳時間: 2015-12-26
上傳用戶:lili123
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
標(biāo)簽: represented integers group items
上傳時間: 2016-01-17
上傳用戶:jeffery
Core JSP In recent years, a large amount of software development activity has migrated from the client to the server. The client-centric model, in which a client executes complex programs to visualize and manipulate data, is no longer considered appropriate for the majority of enterprise applications. The principal reason is deployment—it is a significant hassle to deploy client programs onto a large number of desktops, and to redeploy them whenever the application changes. Instead, applications are redesigned to use a web browser as a "terminal". The application itself resides on the server, formatting data for the user as web pages and processing the responses that the user fills into web forms.
標(biāo)簽: development activity migrated software
上傳時間: 2014-01-13
上傳用戶:duoshen1989
本程式碼是一個簡單的股票分析系統(tǒng),分為server與client兩端,客戶可以從client端看到當(dāng)前的股票價錢訊息,而系統(tǒng)編輯者只需要從server端去輸入那一則股票價錢有變動即可。
上傳時間: 2016-08-24
上傳用戶:sdq_123
使用socket編寫客戶方和服務(wù)器方之間的通訊的程序,實(shí)現(xiàn)server與client 之間的數(shù)據(jù)交換。
標(biāo)簽: socket 編寫 服務(wù)器 程序
上傳時間: 2016-10-02
上傳用戶:yiwen213
使用RSA和DES兩種算法為基礎(chǔ),設(shè)計(jì)實(shí)現(xiàn)了一個簡單的網(wǎng)絡(luò)傳輸模型。 模型里有兩個類,Server和Client,Server端要將自己的公鑰發(fā)給Client,然后Client將自己的DES密鑰通過RSA加密發(fā)給Server 端。之后雙方可以通過DES對稱加密進(jìn)行通信。
上傳時間: 2013-11-29
上傳用戶:hongmo
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1