⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 linux下的异步通信库 支持TCP和UDP异步通信 编译和使用前先读readme.
💻
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -