readme
来自「linux下的异步通信库 支持TCP和UDP异步通信 编译和使用前先读readm」· 代码 · 共 29 行
TXT
29 行
READMEThis is libasync version 0.4. Copyright (C) 2002, Simon BrennerWhat is async?async is a library for asynchronous, event-driven IO over sockets(TCP and UDP supported so far).How does it work?It is really simple. For a server application (TCP), create a subclassof StreamConnection overloading the virtual OnAccept() method. In yourmain() function, create an instance of your server socket subclass, bindit to a port and start listening on it. After all the other initialization is complete, you call theAsyncNotificationLoop() function to give over control to the asynclibrary (the function never returns). The AsyncNotificationLoop() waitsfor IO, and notifies your server socket by calling the OnAccept() methodwhen a client tries to connect.Installation instructions1. Unpack sources (creates new subdirectory async-VERSION)2. cd async-x.x3. ./configure4. make5. make install
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?