![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
名词术语
Dramatically
心比天高,命比纸薄
展开
-
名词:ASG,CSG,PW
ASG :汇聚网关CSG :Cell Site Gateway, 基站侧网关。PW:Pseudo Wire,伪线。原创 2015-04-07 14:11:36 · 6461 阅读 · 0 评论 -
timeval
timeval结构的用于指定时间值。//头文件 //结构timeval{ time_t tv_sec; //秒 [long int] suseconds_t tv_usec; //微秒 [long int]};原创 2015-04-14 15:45:37 · 4493 阅读 · 0 评论 -
socket 常用函数
创建int socket(int domain, int type, int protocol);参数说明:domain:协议域,又称协议族(family)。常用的协议族有AF_INET、AF_INET6、AF_LOCAL(或称AF_UNIX,Unix域Socket)、AF_ROUTE等。协议族决定了socket的地址类型,在通信中必须采用对应的地址,如AF_INET决定了要用ip原创 2015-04-14 15:59:07 · 778 阅读 · 0 评论 -
argc 与 argv
argc和argv中的arg指的是"参数"(arguments, argument counter 和 argument vector )。至少有两个参数至主函数:argc和argv,其中:argc是一个计算提供的参数到程序;argv是对字符串数组的指针。argc, argv 用命令行编译程序时有用。主函数main中变量(int argc, char *argv[ ])的含原创 2015-04-09 09:51:10 · 920 阅读 · 0 评论 -
select 与 fd_set
select(),确定一个或多个套接口的状态,本函数用于确定一个或多个套接口的状态,对每一个套接口,调用者可查询它的可读性、可写性及错误状态信息,用fd_set结构来表示一组等待检查的套接口,在调用返回时,这个结构存有满足一定条件的套接口组的子集,并且select()返回满足条件的套接口的数目。用途:确定一个或多个套接口的状态,如需要则等待。#include int PASC原创 2015-04-14 15:17:35 · 1648 阅读 · 0 评论 -
inet_pton 与 sockaddr
inet_pton:将“点分十进制” -> “二进制整数”,支持ipv4地址和ipv6地址。#include #include #include int inet_pton(int af, const char *src, void *dst);第一个参数af是地址族,第二个参数*src是来源地址,第三个参数* dst接收转换后的数据。inet_pton 是inet原创 2015-04-14 15:25:44 · 950 阅读 · 0 评论