socket学习笔记——select函数的使用(windows)
摘要:1 #include 2 #include 3 #include 4 #include 5 6 #define BUF_SIZE 1024 7 void error_handling(char* message); 8 9 int main(int argc, char* argv[]) 10 { 11 WSADATA wsadata; 12 SOC...
阅读全文
posted @
2015-08-18 12:19
LeoSanford
阅读(1801)
推荐(0)
socket学习笔记——获取域名与IP(linux)
摘要:gethostbyname.c gethostbyaddr.c
阅读全文
posted @
2015-08-17 11:23
LeoSanford
阅读(1082)
推荐(0)
socket学习笔记——实现收发文件(Windows)
摘要:记录下来,供自己学习! server.c client.c
阅读全文
posted @
2015-08-16 10:56
LeoSanford
阅读(495)
推荐(0)
socket学习笔记——IO口的基本操作(读、写)
摘要:写操作 1 #include 2 #include 3 #include 4 #include 5 void error_handling(char* message); 6 7 int main() 8 { 9 int fd; 10 char buf[] = "let's go!"; 11 12 fd = open("1.txt",O_CRE...
阅读全文
posted @
2015-08-12 15:38
LeoSanford
阅读(424)
推荐(0)