摘要:
IPv4地址的结构体 /* Fixed-size types, underlying types depend on word size and compiler. */ typedef signed char __int8_t; typedef unsigned char __uint8_t; t 阅读全文
摘要:
服务端套接字创建过程 第一步:调用socket函数创建套接字 //成功时返回文件表述符,失败时返回-1 int socket(int __domain, int __type, int __protocol) domain:套接字使用的协议族(Protocol Family)信息; type:套接字 阅读全文
摘要:
> 此代码是在最大堆的基础上二次封装,请先阅读底层代码MaxHeap 优先队列 普通队列:先进先出;后进后出 优先队列:出队顺序和⼊入队顺序无关;和优先级相关; 为什么使用堆 代码清单 Queue.h // // Created by cheng on 2021/7/11. // #ifndef M 阅读全文