README
This is libasync version 0.4. Copyright (C) 2002, Simon Brenner
What 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 subclass of StreamConnection overloading the virtual OnAccept() method. In your main() function, create an instance of your server socket subclass, bind it to a port and start listening on it. After all the other initialization is complete, you call the AsyncNotificationLoop() function to give over control to the async library (the function never returns). The AsyncNotificationLoop() waits for IO, and notifies your server socket by calling the OnAccept() method when a client tries to connect.
Installation instructions
- Unpack sources (creates new subdirectory async-VERSION)
- cd async-x.x
- ./configure
- make
- make install
