首页
互助圈
新手教程
进阶之路
算法原理
架构设计
JAVA进阶
C/C++进阶
Python进阶
JavaScript
数据库
大数据
消息服务
源码解读
JAVA源码
Spring源码
数据库
消息服务
Dubbo源码
面试指南
大厂专栏
面试技巧
面试经验
面试题库
开发资料
文档资料
工具软件
电子书籍
小牛导航
在线工具
登录
当前位置:
首页
>
工具软件
>
APIMAN
>
使用案例
>
Socket BSD API man pages
慕容超
2023-12-01
Socket BSD API man pages:
Sockets API:
socket
: establish socket interface
gethostname
: obtain hostname of system
gethostbyname
: returns a structure of type
hostent
for the given host name
bind
: bind a name to a socket
listen
: listen for connections on a socket
accept
: accept a connection on a socket
connect
: initiate a connection on a socket
setsockopt
: set a particular socket option for the specified socket.
close
: close a file descriptor
shutdown
: shut down part of a full-duplex connection
Interrogate a socket:
select
: synchronous I/O multiplexing
FD_ZERO(), FD_CLR(), FD_SET(), FD_ISSET()
: Set socket bit masks
poll
: check on the state of a socket in a set of sockets. The set can be tested to see if any socket can be written to, read from or if an error occurred.
getsockopt
: retrieve the current value of a particular socket option for the specified socket.
Read/Write:
recv/recvfrom/recvmsg
: Read socket
send/sendto/sendmsg
: Write socket
Convert:
ntohl/htonl, ntohs/htons
: convert values between host and network byte order
inet_pton
: Create a network address structure
inet_ntop
: Parse network address structures
Other supporting system calls:
exit
: Terminate process
perror
: Output explanation of an error code
protocols
: Network Protocols (see
/etc/protocols
)
Links:
Apache Portable Runtime (APR)
- [
documentation
] - Portable socket wrapper functions.
SCTP
- Stream Control Transmission Protocol
RPC
- Remote Procedure Calls
IBM: Secure programming with the OpenSSL API
类似资料:
相关阅读
相关文章
相关问答
快捷导航:
新手教程
算法原理
架构设计
Java进阶
数据库进阶
大厂专栏
面试经验
编程笔记
编程问答
所有专题
文档资料
工具软件
电子书籍
小牛导航
在线工具:
房贷计算器
个税计算器
Linux命令查询
Json格式化
正则表达式
颜色转换
AES加解密
SHA1加密
MD5加密
毒鸡汤
字数统计
随机密码生成
进制转换
Base64编解码
励志句子
Copyright © 2019-2024 小牛知识库@xnip.cn. All Rights Reserved.