TCP IP學習筆記(一)

TCP IP共分為四層 分別是:應用程式層對應OSI的應用程式層、展示層、會話層傳輸層對應OSI的傳輸層網際層對應OSI的網路層網路介面層對應OSI的資料連結層以及物理層 TCP/IP 全程為translation control protocol /International protocol包括傳輸控制層與網路應用程式層,是一個協議簇傳輸層分為以下兩類1 TCP

Tomcat7.0開發環境搭建

主要分為以下步驟:1、下載JDK1.6,1.5也是可以的,這裡選擇1.6作為例子:1.6:http://www.oracle.com/technetwork/java/javase/downloads/index.html2、下載ANT,這裡選擇的1.8,最新版本已是1.9了。地址:http://ant.apache.org/bindownload.cgi3、使用svn下載TOMCAT7.0源碼。命令:svn --force export http://svn.apache.org/repos/

WideCharToMultiByte的第四個參數特寫

int WideCharToMultiByte( UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr, int cchWideChar, LPSTR lpMultiByteStr, int cbMultiByte, LPCSTR lpDefaultChar, LPBOOL lpUsedDefaultChar);cchWideChar[in] Size, in WCHAR values, of the string

關於軟鍵盤輸入內容刪除問題的研究

 首先我們來描敘下我們出現的問題:當我們用軟鍵盤在一個對話方塊裡輸入字母后,然後我們想切換下輸入方法(例如切換到輸入數字),我們就會發現我們開始輸入的字母內容不見了,當我們再切換回來輸入數字時候我們又會發現我們剛才輸入的數字不見,同時又出現了剛才被刪除的字母。  首先我們找到軟鍵盤的處理函數並理解分析:public void onKey(int primaryCode, int[] keyCodes) {if (isWordSeparator(primaryCode)) { 

實測多線程並發對隨機讀取的效能提升

機器是4core, 單cpu,檔案大小 15GiB,分成 N 個線程共隨機讀取一萬次,SUSE10, Linux 2.6.16 核心初始機器負載基本為空白,線程個數與耗時的關係如下:線程個數 耗時0        31.3s1        31.3s2        25.5s4        20.2s8        16.5s12       15.0s16       14.2s24       13.3s32       12.6s64       12.5s128      13.

平板介面狀態列按下menu鍵顯示不出,無響應

1.問題描述:在4.1的系統下,調試機器是768*1024的預設:  在launcher

boost::shared_ptr的效能

    原文出版:http://www.darkbull.net/   

跨語言使用對稱式加密

  

再次封裝IOCP的收穫

    以前寫過一篇用python封裝IOCP的文章,這幾天因朋友需要,再一次封裝了iocp介面。這一次我並不是簡單的把原有代碼拿過來簡單的修修改改,基本上是推到重來。改正第一次封裝時的許多缺點,同時修正了許多bug,再回首看以前的代碼,感覺自己在進步。這次封裝iocp,收穫了以下幾點知識:1.

WIN7 64位預設環境變數

ALLUSERSPROFILE=C:\\ProgramDataAPPDATA=C:\\Users\\使用者名稱\\AppData\\RoamingCommonProgramFiles=C:\\Program Files\\Common FilesCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common FilesCommonProgramW6432=C:\\Program Files\\Common

Office嵌入工具列的基本寫法

VC++編寫DLL,在Word

【Poco】學習例子的架構

以前學習一些的第三方庫, 都要寫無數的main的函數, 來學習一些內容. 簡單搭一個小架構來用.主源檔案:#include "tmain.hpp"#include "tfun.hpp"log4cplus::Logger g_logger = log4cplus::Logger::getInstance(LOG4CPLUS_TEXT("POCO_SAMPLE"));int main(int argc, char *argv[], char *env[]){//

gcc編譯最佳化選項-O, -O2

要啟動並執行程式碼:int main(void){double counter;double result;double temp;for (counter = 0; counter < 2000.0 * 2000.0 * 2000.0 /20.0 + 2200; counter += (5-1)/4){temp = counter / 1979;result = counter;}printf("Result is %lf\\n", result);return

指標與const之間的組合,寫了個例子溫習一下

#include <iostream>class A{public:A(){this->i = 1;}int get() const{return this->i;};void set(int i){this->i = i;};private:int i;};int main(){// 指標常量, 必須在聲明時進行初始化。A *const p = new A;std::cout << p->get() <<

DevPartner 10.0 破解方法

64bit Windows:1. First we go to the branch HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Compuware\DLM and delete all the keys starting with C10-*******2. Then in the folder C:\Users\Public\. Compuware delete all files with the extension type. _v1b

【Poco】Poco::UUIDGenerator的例子

#include "../tmain.hpp"void test_UUID(){Poco::UUIDGenerator& gen = Poco::UUIDGenerator::defaultGenerator();std::set<Poco::UUID> uuids;for (int i = 0; i < 10; ++i){// Poco::UUID uid = gen.create();Poco::UUID uid =

Tomcat5.5 Administration Web Application配置

Tomcat5.5預設安裝時,並沒有提供 Administration Web Application,需要另外下載安裝,到這裡下載:http://tomcat.apache.org/download-55.cgi ,在下載頁面的Binary Distributions欄下的第四大項,Administration Web Application ,下載後解壓,然後把apache-tomcat-5.5.20\conf\Catalina\localhost\admin.xml拷貝到 Tomcat 5

warning C4996: ‘sprintf’ was declared deprecated see declaration of ‘sprintf’

方法1:VC6---選項Project | Configuration Properties | C/C++ | Preprocessor | Preprocessor Definitions添加_CRT_SECURE_NO_DEPRECATE和_SCL_SECURE_NO_DEPRECATE兩個宏VS2005 項目屬性 --> C/C++ --> 前置處理器 -->

DELPHI WM_CopyData 用法

unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, StdCtrls, ComCtrls;typeTForm1 = class(TForm)Button1: TButton;Edit1: TEdit;Edit2: TEdit;procedure Button1Click(Sender: TObject);private{

【Boost】boost庫的隨機數的例子

void test_mt19937(){// 以時間為種子建立一個隨機數發生器boost::mt19937 rng(time(0));for (int i = 0; i < 100; ++i){std::cout << rng() << std::endl;}}void test_rand48(){boost::rand48 rng;for (int i = 0; i < 10; ++i){std::cout << rng() * 1.0 /

總頁數: 61357 1 .... 26283 26284 26285 26286 26287 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.