c
ChangeMe_Q
人类经常把一个生涯发生的事,撰写成历史,在从那里看人生;其实,那不过是衣服,人生是内在的。
展开
-
linux 获取&设置鼠标灵敏
#include<stdio.h> #include <X11/extensions/XInput2.h> #include <string.h> static void print_property_xi2(Display *dpy, int deviceid, Atom property) { Atom act_type; char *name; int原创 2021-12-14 15:41:32 · 1122 阅读 · 0 评论 -
HTTPS客户端程序示例
HTTPS客户端程序示例 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <errno.h> #include <unistd.h>原创 2018-06-19 17:41:22 · 2670 阅读 · 0 评论 -
tcp client epoll 多socket 复用
tcp client epoll 多socket 复用 #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <...原创 2018-07-02 14:19:30 · 1134 阅读 · 0 评论 -
ptrace 获取程序实时的堆栈
#!/bin/bash if test $# -ne 1; then echo "Usage: `basename $0 .sh` <process-id>" 1>&2 exit 1 fi if test ! -r /proc/$1; then echo "Process $1 not found." 1>&2 exit ...原创 2018-11-15 15:02:32 · 1114 阅读 · 0 评论