
C
WanJunCoder
make the world a better place!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
TCP客户端非阻塞connect,EPOLL异步响应
废话不多说,直接上代码下面展示一些 内联代码片。#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h>#include <iostream&g原创 2020-10-18 23:50:39 · 1735 阅读 · 1 评论 -
lightttpd进程守护化
#ifdef HAVE_FORKstatic void daemonize(void) {#ifdef SIGTTOU signal(SIGTTOU, SIG_IGN);#endif#ifdef SIGTTIN signal(SIGTTIN, SIG_IGN);#endif#ifdef SIGTSTP signal(SIGTSTP, SIG_IGN);#endif if (0...原创 2020-03-31 10:26:57 · 473 阅读 · 0 评论 -
python3调用C动态库函数
制作动态库#include <stdio.h>#include <string.h>#include <string>#include <cmath>#include <iostream>using namespace std; extern "C" float Dist(float ax,float ay,float a...原创 2019-03-09 10:11:20 · 3025 阅读 · 3 评论