会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Good artists copy, great artists steal
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
下一页
2024年8月7日
【c++】Linux MySQL连接池
摘要: #ifndef MYSQLCONNECTION_H #define MYSQLCONNECTION_H #include <iostream> #include <mysql.h> #include <vector> class MySQLConnection { public: /// <summ
阅读全文
posted @ 2024-08-07 22:05 仰望星河Leon
阅读(54)
评论(0)
推荐(0)
2024年7月18日
【Linux网络编程-7】epoll边沿触发
摘要: 非阻塞recv EAGAIN、EWOULDBLOCK错误码值11 返回值 含义 >0 接收字节数 0 接收FIN包,连接被对端断开 -1 (errno==EAGAIN||EWOULDBLOCK)表示还有数据未读。反之,则表示发生了错误。 //epollServer.cpp #include <std
阅读全文
posted @ 2024-07-18 18:38 仰望星河Leon
阅读(94)
评论(0)
推荐(0)
【数据结构与算法】bitmap
摘要: bitmap 位图法,用每个bit位存储状态(如0/1),用于判断某个数据是否存在。适用于数据量很大,但状态不多的情况。 数据的取值范围[min,max],创建长度为max-min+1的bit数组bitmap,若num存在则bitmap[num]=1,否则为0。 用char数组存储,每个元素存1字节
阅读全文
posted @ 2024-07-18 02:33 仰望星河Leon
阅读(249)
评论(0)
推荐(0)
2024年7月15日
【Linux网络编程-6】IO复用
摘要: 1.select模型 //selectServer.cpp #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/sock
阅读全文
posted @ 2024-07-15 17:51 仰望星河Leon
阅读(35)
评论(0)
推荐(0)
2024年7月10日
【Linux网络编程-5】多线程服务端
摘要: //mthserver.cpp #include "TcpServer.h" #include "CLogFile.h" #include <string> #include <pthread.h> #include <vector> CLogFile logfile; TcpServer tcpS
阅读全文
posted @ 2024-07-10 00:40 仰望星河Leon
阅读(32)
评论(0)
推荐(0)
2024年7月4日
【Linux网络编程-3】多进程服务端
摘要: #include "TcpServer.h" #include "CLogFile.h" CLogFile logfile; TcpServer tcpServer; void FatherEXIT(int sig) { if(sig>0) { signal(sig,SIG_IGN); signal
阅读全文
posted @ 2024-07-04 01:56 仰望星河Leon
阅读(52)
评论(0)
推荐(0)
2024年5月12日
【python】bilibili动态删除脚本
摘要: import pprint import requests import json import re import os # 最大删除条数 MAX_COUNT = 200 # 保存cookie的路径 COOKIE_FILE_PATH = r"./cookie.txt" class BWebSite
阅读全文
posted @ 2024-05-12 14:33 仰望星河Leon
阅读(164)
评论(0)
推荐(0)
2024年5月8日
【c++】c++11实现线程池
摘要: #include <iostream> #include <mutex> #include <queue> #include <vector> #include <functional> #include <condition_variable> #include <atomic> #include
阅读全文
posted @ 2024-05-08 03:34 仰望星河Leon
阅读(101)
评论(0)
推荐(0)
2023年7月6日
【C#】C#中的?
摘要: ## ?. 可为null的类型访问成员时,若为null则返回null,非null时访问并返回成员。 ## ?? a??b 若a为null,则返回b。若a非null,则返回a。 ## int? 值类型可null ## a>b?val1:val2
阅读全文
posted @ 2023-07-06 12:29 仰望星河Leon
阅读(79)
评论(0)
推荐(0)
2023年7月4日
【C#】反射基础
摘要: # 1.基础 反射性能不高。 反射:运行时获取加载到内存中的程序集的元信息。 反射的作用:访问object实例的成员(fields,properties,methods) ## (1)对装箱操作的object实例获取成员 >Type GetType()——获取类型 GetFields()——获取所有
阅读全文
posted @ 2023-07-04 18:28 仰望星河Leon
阅读(68)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
下一页
公告