C/C++
文章平均质量分 93
lzx1104
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Networking and Sockets (3)
The Domain Name System (DNS)#include #include /* Structure to contain information about address of a service provider. */struct addrinfo{ int ai_flags; /* Input flags. */原创 2011-11-19 05:36:28 · 466 阅读 · 0 评论 -
Networking and Sockets (1)
Basic System calls For Connected Sockets#include int socket(int domain, int type, int protocol); // type SOCK_STREAM, SOCK_DAGRAMserverint bind(int socket_fd, const struct sockaddr* sa, so原创 2011-11-17 22:57:00 · 585 阅读 · 0 评论 -
Networking and Sockets (2)
Connectionless Socketspeer to peer DatagramsConnectionless communications uses datagrams, which are independent chunks of data containing a destination address.There's no attempt to keep datagra原创 2011-11-19 16:49:06 · 524 阅读 · 0 评论 -
Boost 线程同步机制
Boost.Thread.Synchronization Boost 中,可以使用互斥(mutex)变量来进行同步, 通过锁(Lock)操作来获得mutex的所有权,通过解锁(Unlock)操作来让出所有权,而条件变量(condition_variable)则提供了一种机制用于一个线程等待另一个线程通知某个特定条件的状态变为真。1. Mutex Boost提供了recursiv原创 2011-09-09 14:08:45 · 7913 阅读 · 0 评论 -
转载:GCC参数详解
原文链接:GCC参数详解 (2007-05-23 16:10:41)http://blog.sina.com.cn/s/blog_57295811010008pj.html转载 2014-08-21 10:37:23 · 582 阅读 · 0 评论 -
UNIX Network Programming Volume 1, 3rd, Notes
UNIX Network Programming Volume 1, 3rd Edition: The Sockets Networking APIChapter 11.1This client works with IPv4 only, and we show the changes required to work with IPv6. A better solution is原创 2014-08-26 12:25:00 · 1194 阅读 · 0 评论 -
Makefile
GCC = g++INCLUDE = -I./includeLIBS = -L./lib/LIBS+= -lxxxSRC = $(wildcard *.cpp)OBJDIR = objOBJ = $(SRC:%.c=$(OBJDIR)/%.o)TARGET = ../ExpoServermake: $(OBJ)$(GCC) -o $(TA原创 2014-08-25 17:26:47 · 592 阅读 · 0 评论
分享