摘要:
采用libevent2将输入的字符变成大写,然后在返回去,代码如下/* For sockaddr_in */#include <netinet/in.h>/* For socket functions */#include <sys/socket.h>/* For fcntl */#include <fcntl.h>#include <event2/event.h>#include <event2/buffer.h>#include <event2/bufferevent.h>#include <assert.h&g 阅读全文