Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 377 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 377 Bytes

libep

基于epoll实现的reactor模式网络库。

install

source build.sh
make
sudo make install

sample

void messageCallback(std::weak_ptr<NetModule::TCPConnection> tcpc, time_t time){
  //process
}

int main() {
    NetModule::TCPServer tcpServer(1234);
    tcpServer.setMessageCallback(messageCallback);
    tcpServer.start();

    return 0;
}