09 2021 档案
摘要:
一、相关定义 sds的定义 typedef char *sds; sdshdr的定义 /* Note: sdshdr5 is never used, we just access the flags byte directly. * However is here to document the l
阅读全文
一、相关定义 sds的定义 typedef char *sds; sdshdr的定义 /* Note: sdshdr5 is never used, we just access the flags byte directly. * However is here to document the l
阅读全文
摘要:
一、读回调 客户端的消息处理循环 有上一节可知,redis通过epoll来检测是否有客户端接入,一旦有请求,则会调用acceptTcpHandler,然后再调用createClient将fd和client对应起来,最后挂在到全局的server.clients链表上面。在createClient里面又
阅读全文
一、读回调 客户端的消息处理循环 有上一节可知,redis通过epoll来检测是否有客户端接入,一旦有请求,则会调用acceptTcpHandler,然后再调用createClient将fd和client对应起来,最后挂在到全局的server.clients链表上面。在createClient里面又
阅读全文
摘要:
一、 核心数据结构 ConnectionType, ConnectionType定义了网络连接的接口,包含read、write等,具体定义如下。 typedef struct ConnectionType { void (*ae_handler)(struct aeEventLoop *el, in
阅读全文
一、 核心数据结构 ConnectionType, ConnectionType定义了网络连接的接口,包含read、write等,具体定义如下。 typedef struct ConnectionType { void (*ae_handler)(struct aeEventLoop *el, in
阅读全文

浙公网安备 33010602011771号