摘要: 非阻塞Accept和Connect的封装器,WINDOWS版本acceptor#ifndef _ACCEPTOR_H#define _ACCEPTOR_Htypedef struct acceptor* acceptor_t;typedef void (*on_accept)(SOCKET);acceptor_t create_acceptor(const char *ip,unsigned long port,on_accept accept_callback);void destroy_acceptor(acceptor_t*);void acceptor_run(... 阅读全文
posted @ 2012-05-08 16:56 sniperHW 阅读(1045) 评论(3) 推荐(0) 编辑