uv_buf_t buf = uv_buf_init("just test", 10);. 这必须是动态分配内存,在uv_write函数内部会对这个指针赋值。 uv_write_t *reqw = (uv_write_t*)malloc(sizeof *reqw);.
確定! 回上一頁