34.卷1(套接字联网API)---常用函数

// 1.简介
htons();
inet_pton();

// 3.套接字编程简介
inet_addr();
inet_ntoa();
inet_pton();
inet_ntop();
htons();
htonl();
ntohs();
ntohl();
bzero();
bcopy();
bcmp();
memset();
memcpy();
memcmp();
inet_aton();
inet_ntoa();
inet_addr();
inet_pton();
inet_ntop();
readn();
written();
readline();

//4.基本TCP套接字编程
socket();
connect();
bind();
getsockname();
listen();
accept();
fork();
exec();
execl();
execv();
execle();
execve();
execlp();
execvp();
close();
shutdown();
getsockname();
getpeername();

//5.TCP客户/服务器程序示例
wait();
waitpid)();

//6.I/O复用 : select 和 poll 函数
select();
poll();
fileno();
shutdown();
pselect();

//7.套接字选项
fcntl();
ioctl();
getsockopt();
setsockopt();

//8.基本UDP套接字编程
sendto();
recvfrom();

//9.基本SCTP套接字编程
sctp_bindx();
sctp_connectx();
sctp_getpaddrs();
sctp_freepaddrs();
sctp_getladdrs();
sctp_freeladdrs();
sctp_sendmsg();
sctp_recvmsg();
sctp_opt_info();
sctp_peeloff();
shutdown();

//11.名字与地址转换
gethostbyname();
gethostbyaddr();
getservbyname();
getservbyport();
getaddrinfo();
getnameinfo();
gai_strerror();
freeaddrinfo();
getnameinfo();
gethostbyname_r();
gethostbyaddr_r();

//13.守护进程和 inetd 超级服务器
syslog();
openlog();
closelog();

//14.高级IO函数
recvfrom();
recv();
send();
readv();
writev();
recvmsg();
sendmsg();
fileno();
fdopen();
fflush();
setvbuf();
kqueue();
kevent();
EV_SET();


//15.Unix域协议
socketpari();

//16.非阻塞式IO
read();
readv();
recv();
recvfrom();
recvmsg();
readn();

write();
writev();
send();
sendto();
sendmsg();

//17.ioctl 操作
ioctl();

//18.路由套接字
sysctl();
if_nametoindex();
if_indextoname();
if_freenameindex();

//19.密钥管理套接字
getopt();

//20.广播
pselect();

//21.多播
mcast_join();
mcast_leave)();
mcast_block_source();
mcast_unblock_source();
mcast_join_source_group();
mcast_leave_source_group();
mcast_set_if();
mcast_set_loop();
mcast_set_ttl();
mcast_get_if();
mcast_get_loop();
mcast_get_ttl();

//22.高级UDP套接字编程
sendmsg();
recvmsg();

//23.高级SCTP套接字编程
sctp_bindx();

//24.带外数据
sockatmark();

//26.线程
pthread_create();
pthread_join();
pthread_self();
pthread_detach();
pthread_exit();
pthread_key_create();
pthread_once();
pthread_getspecific();
pthread_setspecific();
pthread_mutex_lock();
pthread_mutex_unlock();
pthread_cond_wait();
pthread_cond_signal();
pthread_cond_broadcast();
pthread_cond_timedwait();


//27.IP选项
getsockopt();
setsockopt();
inet6_opt_init();
inet6_opt_append();
inet6_opt_finish();
inet6_opt_set_val();
inet6_opt_next();
inet6_opt_find();
inet6_opt_get_val();
inet6_rth_space();
inet6_rth_init();
inet6_rth_add();
inet6_rth_reverse();
inet6_rth_segments();
inet6_rth_getaddr();

//31.流
getmsg();
putmsg();
getpmsg();
putpmsg();
ioctl();




















猜你喜欢

转载自blog.csdn.net/enlyhua/article/details/80724037