摘要: //the basic idea is, keep a hashmap which stores the characters in string as keys and their positions as values, and keep two pointers which define the max substring. move the right pointer to scan t... 阅读全文
posted @ 2017-07-10 06:28 never_comparison 阅读(143) 评论(0) 推荐(0) 编辑
摘要: eclipse使用快捷键: 1. 查找声明 : F3 ( 或者 Ctrl 加鼠标左键点击 ) 2. 头文件和源文件切换 . Ctrl +Tab 3. 查看类继承关系图 Ctrl +T 4. 查找源文件 Ctrl +Shift+R 5. 查找字段 Ctrl +H 6. 查找文件的函数或者全局变量 Ctrl +O 7. 查找被引用的位置 Ctrl + Shift + G s... 阅读全文
posted @ 2017-07-10 06:17 never_comparison 阅读(104) 评论(0) 推荐(0) 编辑
摘要: preview: '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire input string (not partial). The function prototype should be: bool... 阅读全文
posted @ 2017-07-10 06:14 never_comparison 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 队列调度 1队列有调度方式: 并发调度和抢占式调度,信用机制。 2现有的并发队列调度的缺点: 最开始,postfix使用一种很简单但却很健壮的发送方法,每当尝试连接发送但失败后,会减少1个并发数,反之增加一个并发数。当然并发数不能超过配置参数maximum per-destination.当并发数降 阅读全文
posted @ 2017-07-10 06:00 never_comparison 阅读(195) 评论(0) 推荐(0) 编辑
摘要: List: imap I tried the code you referenced (the exact program and compilation script are in attachments), but it failed. The program takes input as modified UTF-7, uses MailboxToURL routine to ... 阅读全文
posted @ 2017-07-10 05:33 never_comparison 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 队列管理中真正的main函数式 trigger_server_main(argc, argv, qmgr_trigger_event, CA_MAIL_SERVER_INT_TABLE(int_table), CA_MAIL_SERVER_STR_TABLE(str_table), CA_MAIL_ 阅读全文
posted @ 2017-07-10 05:26 never_comparison 阅读(574) 评论(0) 推荐(0) 编辑
摘要: Postfix网络编程的结构: Tcp/Ip连接:inet_connect.c inet_listern.c //src/util/inet_connect.c /* inet_connect - connect to TCP listener */ int inet_connect(const c 阅读全文
posted @ 2017-07-10 05:25 never_comparison 阅读(197) 评论(0) 推荐(0) 编辑
摘要: src/master typedef struct { char *program; /* postfix */ int major; /* 2 */ int minor; /* 9 */ int patch; /* null */ char *snapshot; /* 20111209-nonpr 阅读全文
posted @ 2017-07-10 05:20 never_comparison 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 结构: struct WATCHDOG { unsigned timeout; /* our time resolution */ WATCHDOG_FN action; /* application routine */ char *context; /* application context  阅读全文
posted @ 2017-07-10 05:18 never_comparison 阅读(185) 评论(0) 推荐(0) 编辑
摘要: B树:二叉搜索树 性质: 1.所有非叶子结点至多拥有两个儿子(Left和Right); 2.所有结点存储一个关键字; 3.非叶子结点的左指针指向小于其关键字的子树,右指针指向大于其关键字的子树; B-树: 1.定义任意非叶子结点最多只有M个儿子;且M>2; 2.根结点的儿子数为[2, M]; 3.除 阅读全文
posted @ 2017-07-10 03:56 never_comparison 阅读(127) 评论(0) 推荐(0) 编辑