2018年5月13日

《UNIX网络编程 卷1 套接字联网API》(第三版)阅读笔记----2018.5.12

摘要: 值-结果参数:当函数被调用时,结构大小是一个值,它告诉内核该结构的大小,这样内核在写该结构时不至于越界;当函数返回时,结构大小又是一个结果,它告诉进程内核在该结构中究竟存储了多少信息。这种类型的参数称为值-结果参数。 字节排序函数:当使用这些函数时,我们并不关心主机字节序和网络字节序的真实值(或为大 阅读全文

posted @ 2018-05-13 16:36 MrRS 阅读(124) 评论(0) 推荐(0) 编辑

堆栈应用:匹配文本符号({ }、[ ]、())----2018.5.13

摘要: #include #include #include #include typedef char Status; //函数返回结果 typedef struct _member { char ch; int line; int column; }Data; typedef struct _stack { int size; int memb;... 阅读全文

posted @ 2018-05-13 15:00 MrRS 阅读(451) 评论(0) 推荐(0) 编辑

导航