SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

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

  1. Unpack sources (creates new subdirectory async-VERSION)
  2. cd async-x.x
  3. ./configure
  4. make
  5. make install


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.