摘要:
1.在libevent官网(http://libevent.org/)上下载压缩包(我下载的是libevent-2.1.8-stable.tar.gz) 2.解压压缩包:tar -zxvf libevent-2.1.8-stable.tzr.gz 3.进入新生成的目录中:cd libevent-2. 阅读全文
posted @ 2022-02-06 14:13
hellozhangjz
阅读(690)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <sys/socket.h> #include <arpa/inet.h> #include <string.h> #include <sys/un.h> #include <unistd.h> #include <stddef.h> int 阅读全文
posted @ 2022-02-06 13:39
hellozhangjz
阅读(63)
评论(0)
推荐(0)
摘要:
int main() { // 创建套接字 int fd = socket(AF_INET, SOCK_DGRAM, 0); perror("socket"); struct sockaddr_in addr; addr.sin_family = AF_INET; addr.sin_addr.s_a 阅读全文
posted @ 2022-02-06 11:20
hellozhangjz
阅读(26)
评论(0)
推荐(0)
摘要:
本文来自博客园,作者:Jcpeng_std,转载请注明原文链接:https://www.cnblogs.com/JCpeng/p/15077235.html 一、查找文件 使用 Linux 经常会遇到这种情况:只知道文件中包含某些特定的字符串,但是不知道具体的文件名。需要根据“关键词”反向查找文件。 阅读全文
posted @ 2022-02-06 10:49
hellozhangjz
阅读(681)
评论(0)
推荐(0)

浙公网安备 33010602011771号