原创 [Linux][2012-08-06] 1 字節對齊

#pragma pack(1)

原创 [IDE][2013-5-13] source insight 設置 函數 括號 智能縮進 設置

1. Auto Indent 設置: 點擊" Auto Indent" 按鈕, 彈出 勾選"indent Open Brace 和 Indent Close Brace" 的效果 截然不同: 勾選"indent Open Brace

原创 [RTSP][2012-06-16] RTSP PAUSE

Methods: PAUSE direction: Client to Server  requirenment: recommended  目的: 讓整個 steam 暫時的停止. 配合 Range header 使用, 但要告知 Se

原创 [RTSP][2012-07-4] typedef

爲複雜的聲明定義一個新的簡單的別名。 舉例: 1. 原聲明:int *(*a[5])(int, char*); 變量名爲a,直接用一個新別名pFun替換a就可以了: typedef int *(*pFun)(int, char*); 原

原创 [Linux][2012-08-28] SHA 系列加密算法

原文轉發自:http://zh.wikipedia.org/wiki/SHA%E5%AE%B6%E6%97%8F   安全散列算法(英語:Secure Hash Algorithm) 是一種能計算出一個數位訊息所對應到的,長度固定的字串(

原创 [Linux][2012-11-01] openssl demo 例子

開源的東東到處都是。   開源的軟件都提供的 demo,在安裝包中,或安裝以後的目錄裏。   如 openssl中 自帶了各種你需要的例子: 超多超全   可以搜索 /demos/   其中包含各種 文件。

原创 [Linux][2012-09-27] Linux nm && ldd 命令

原文轉自:http://www.cnblogs.com/yc_sunniwell/archive/2010/07/22/1782685.html     1. Linux nm 命令nm [‘-a’|‘--debug-syms’] [‘

原创 [RTSP][2012-06-16] RTSP SETUP

Methods: SETUP direction: Client to Server  requirement: required  目的: SETUP method 可以讓 Client 告知 Server 端, 它可以用何種 mech

原创 [Linux][2012-08-03] Redhat : This system is not registered with RHN

由於redhat 沒有註冊,所有不能使用它自身的源進行更新,所以我們可以通過更換源來進行相關更新:   更改yum的源,即更換/etc/yum.repos.d/rhel-debuginfo.repo 這個文件。進入/etc/yum.rep

原创 [RTSP][2012-06-16] RTSP PLAY

Methods: PLAY direction: Client to Server  requirement: required  目的: Client 利用 PLAY method 告知 Server 可以開始傳送資料, 而且是經由 S

原创 [linux][2012-06-16] RTSP 請求和應答 有用的標籤值

在RTSP請求和應答中使用的有用的標籤值:   CSeq:                                    命令的序列號,逐1增加。                                          

原创 [linux][2012-06-16] RTSP 主要命令

RTSP的主要命令:             點贊 收藏 分享 文章舉報 qdylan 發佈了20 篇原創文章 · 獲贊 3 · 訪問量 6萬+ 私信

原创 [Linux][2012-08-28] c/cpp # 井號 雙井號 的使用

在宏定義中經常會用到#和##單井號(#)把傳遞過來的參數當成字符串進行替代 如下示例: #define display(name) printf("

原创 [RTSP][2012-06-16] RTSP OPTIONS

Methods: OPTIONS direction: Client to Server  requirement: Required  作用: 當Client 要使用非標準的 method 時, Client 就會向 Server 發出

原创 [Linux][2012-08-29] Linux 版本查看

提供以下 三種方式   uname -acat /proc/version/etc/SuSE-release /etc/redhat-release /etc/debian_version 點贊 收藏 分享