/** initialize the uv_async_t handle. a null callback is allowed.
* * note that uv_async_init(), unlike other libuv functions, immediately
* starts the handle. to stop the handle again, close it with uv_close(). */
uv_extern
int uv_async_init(uv_loop_t*,
uv_async_t* async
, uv_async_cb async_cb);
傳送非同步命令時初始化用的,具體也不太了解
intuv_tcp_getpeername
(const uv_tcp_t*handle, struct sockaddr*name, int*namelen
):獲取與handle連線的遠端的位址
uv_extern int uv_ip4_name(const struct sockaddr_in* src, char* dst, size_t size);將二進位制ip位址轉換成字串
typedef handle uv_thread_t;typedef
void *handle;
看來這個uv_thread_t只是windows的乙個控制代碼,控制代碼是一種資源的意思,大概可以理解成指標,這些庫的封裝最終還是離不開底層的作業系統。
gtk函式(不斷更新)
2,gtk widget modify bg用來設定某個構件的背景顏色,類似的函式有gtk widget modify font gtk widget modify text等,分別用來設定構件的不同部分。例項如下 gdkcolor color color.red 27000 color.green...
JS 學習不斷更新
1 indexof 方法 返回 string 物件內第一次出現子字串的字元位置。strobj.indexof substring startindex 引數 strobj 必選項。string 物件或文字。substring 必選項。要在 string 物件中查詢的子字串。starindex 可選項...
程式設計異常(不斷更新)
1 illegalargumentexception 不合法的引數異常,向方法傳遞了乙個不合法或不正確的引數。2 classcastexception 型別轉換錯誤,通常是進行強制型別轉換時候出的錯誤。3 unsupportedoperationexception 不支援功能異常,常常出現在使用ar...