File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,17 @@ struct ngx_connection_s {
144
144
145
145
ngx_socket_t fd ; // 当前连接的 TCP socket 句柄
146
146
147
- ngx_recv_pt recv ; // 直接接收 socket 数据时调用的方法
148
- ngx_send_pt send ; // 直接写入 socket 数据时调用的方法
147
+ /*
148
+ * 直接接收 socket 数据时调用的方法
149
+ * 函数原型: ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size);
150
+ */
151
+ ngx_recv_pt recv ;
152
+
153
+ /*
154
+ * 直接写入 socket 数据时调用的方法
155
+ * 函数原型: ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size);
156
+ */
157
+ ngx_send_pt send ;
149
158
ngx_recv_chain_pt recv_chain ;
150
159
ngx_send_chain_pt send_chain ;
151
160
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ struct ngx_event_s {
142
142
ngx_rbtree_node_t timer ;
143
143
144
144
/* the posted queue */
145
+ // post 事件双向链表指针
145
146
ngx_queue_t queue ;
146
147
147
148
#if 0
You can’t perform that action at this time.
0 commit comments