spioutils.hpp
来自「spserver 是一个实现了半同步/半异步(Half-Sync/Half-As」· HPP 代码 · 共 27 行
HPP
27 行
/* * Copyright 2007 Stephen Liu * For license terms, see the file COPYING along with this library. */#ifndef __spioutils_hpp__#define __spioutils_hpp__#include <netinet/in.h>class SP_IOUtils {public: static void inetNtoa( in_addr * addr, char * ip, int size ); static int setNonblock( int fd ); static int setBlock( int fd ); static int tcpListen( const char * ip, int port, int * fd, int blocking = 1 );private: SP_IOUtils();};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?