学习笔记
Int fd;
Short events;
Short revents;
}
7.1 getsockopt 和setsockopt函数
1、
#include<sys/socket.h>
Int getsockopt(int sockfd,int level,int optname,void * optval,socklen_t * optlen);
Int setsockopt(int sockfd, int level, int optname, const void * optval, socklen_t optlen);
2、SO_LINGER套接口选项所需数据结构
Struct linger
{
Int l_onoff;
Int l_linger;
};
4、 SCTP_ASSOCINFO套接口选项气压数据结构
Struct sctp_assocparams
{
Sctp_assoc_t sasoc_assoc_id;
Uint16_t sasoc_asocmaxrxt;
Uint16_t sasoc_number_peer_destinations;
Uint32_t sasoc_peer_rwnd;
Uint32_t sasoc_local_rwnd;
Uint32_t sasoc_cookie_life;
};
5、 SCTP_DEFAULT_SEND_PARAM套接口选项所需数据结构
Struct sctp_sndrcvinfo
{
Uint16_t sinfo_stream;
Uint16_t sinfo_ssn;
Uint16_t sinfo_flags;
Uint32_t sinfo_ppid;
Uint32_t sinfo_context;
Uint32_t sinfo_timetolive;
Uint32_t sinfo_tsn;
Uint32_t sinfo_cumtsn;
Sctp_assoc_t sinfo_assoc_id;
};
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库套接口地址结构(4)在线全文阅读。
相关推荐: