Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 588 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 588 Bytes

welcome for socket Study here

If you wanna start your socket study, this project can be a good choise. Let's go ahead ~'


基本用法

创建     int socket(int domain, int type, int protocol);

连接 int connect(int, const struct sockaddr *, socklen_t) __DARWIN_ALIAS_C(connect);

发送数据 ssize_t send(int, const void *, size_t, int) __DARWIN_ALIAS_C(send);

读取数据 ssize_t recv(int, void *, size_t, int) __DARWIN_ALIAS_C(recv);


详见👇

来我的简书遛弯吧^_^ socket入门回顾