原创 Linux網絡編程-UDP組播

本文試圖成爲學習TCP/IP網絡組播技術的入門材料。文中介紹了組播通信的概念及原理,以及用於組播應用編程的 Linux API的詳細資料。爲了使讀者更加完整的瞭解Linux 組播的整體概念,文中對實現該技

原创 內核 do_fork 函數源代碼淺析

http://linux.chinaunix.net/bbs/thread-1051510-1-1.html 前面已經談了內核加載與系統引導過程,下面我們來看看內核的 do_fork() 函數是如何創建一個新的進程的。 在 Linux

原创 用socketpair()進行進程間的全雙工通訊

/************************************************* * description: use socketpair() to implete IPC(全雙工的IPC) * author:

原创 pthread_cond_wait的鎖操作

The mutex passed to pthread_cond_wait protects the condition.The caller passes it locked to the function, which then at

原创 小計~strtok_r來取list

static unsigned int split(const char *str, const char *deli, AVL_DLIST_T *

原创 嵌入式linux usb wifi驅動移植

文檔名稱:嵌入式linux usb wifi驅動移植 版本歷史 版本號        時間        內容 v1.0b001        2012-6-18        初始版本,介紹在嵌入

原创 網頁留個言

<html>//聯繫下讀寫文件 <head><title>網絡留言板模式</title></head> <body> <?php $filename="text_data.txt"; if(isset(

原创 getopt

getopt(分析命令行參數)   相關函數   表頭文件 #include<unistd.h>   定義函數 int getopt(int argc,char * const argv[ ],const char * opt

原创 wpa_supplicant 筆記

wpa_supplicant 筆記來自於wpa_supplicant-devel文檔2、代碼結構核心功能、通用輔助功能、加密功能、TLS庫、配置、控制接口、WPA提供者、EAP點、EAPOL提供、窗口端口和測試程序。wpa_supplic

原创 Linux中ifreq 結構體分析和使用(轉)

結構原型: struct ifreq {#define IFHWADDRLEN 6  union  {  char ifrn_name[IFNAMSIZ];    } ifr_ifrn;   union {  struct socka

原创 wpa_supplicant軟件架構分析

1. 啓動命令 wpa supplicant 在啓動時,啓動命令可以帶有很多參數,目前我們的啓動命令如下: wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/w

原创 Glib基礎

http://www.cnblogs.com/wangkangluo1/category/303622.html

原创 簡單線程池

thread_pool.h #ifndef THREAD_POOL_H #define THREAD_POOL_H #include <stdio.h> #include <stdlib.h> #includ

原创 bmp format

  bmp圖片 位圖(BMP)文件頭格式及數據分析   bmp圖片介紹  BMP是一種與硬件設備無關的圖像文件格式,使用非常廣。它採用位映射存儲格式,除了圖像深度可選以外,不採用其他任何壓縮,因此,BMP文件所佔用的空間很大。BMP文件的

原创 subtitile in DVB

demux--->queue-->taskOne->parse-{pts,pageId,timeout) --segment----region--object---BItmap/char ----clut ----decode disp