linux
一尺丈量
春风写意,万物屠苏。
展开
-
编程心得与经验记录
查看堆栈及其占用CPU:perf top -g -p 37808 查看线程:pstree -p 14242原创 2021-05-14 16:11:19 · 97 阅读 · 0 评论 -
linux select编程示例
select编程示例 代码中出现的errwrap.h和errwrap.c请参考我的上一篇文章 服务器 #include #include #include #include #include #include "errwrap.h" #define MAXLINE 80 #define SERVERPORT 8000 int main(int argc, char *argv[原创 2016-12-07 16:29:13 · 4835 阅读 · 1 评论 -
linux网络编程基础
代码类博客 errwrap.h #ifndef __ERRWRAP__H #define __ERRWRAP__H void perr_exit(const char *s); void err_exit(const char *s); int Accept(int fd, struct sockaddr *sa, socklen_t *salenptr); void Bind(int fd原创 2016-12-07 16:23:40 · 785 阅读 · 0 评论