随笔分类 -  Socket

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) 推荐(0)
socket学习笔记——线程(聊天程序)
摘要:server.c client.c 阅读全文
posted @ 2015-08-17 21:10 LeoSanford 阅读(351) 评论(0) 推荐(0)
socket学习笔记——select与epoll函数的使用(linux)
摘要:select.c epoll.c 阅读全文
posted @ 2015-08-17 16:32 LeoSanford 阅读(315) 评论(0) 推荐(0)
socket学习笔记——并发服务器与I/O程序分割客户端
摘要:client.c server.c 阅读全文
posted @ 2015-08-17 15:10 LeoSanford 阅读(444) 评论(0) 推荐(0)
socket学习笔记——获取域名与IP(linux)
摘要:gethostbyname.c gethostbyaddr.c 阅读全文
posted @ 2015-08-17 11:23 LeoSanford 阅读(1082) 评论(0) 推荐(0)
socket学习笔记——实现收发文件(Windows)
摘要:记录下来,供自己学习! server.c client.c 阅读全文
posted @ 2015-08-16 10:56 LeoSanford 阅读(495) 评论(0) 推荐(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) 推荐(0)


levels of contents