Main Page | Modules | Data Structures | Data Fields

Scheduling
[Socket streams]


Detailed Description

Scheduling task for streams.

Well that's the way to really use 'em.


Functions

void peak_stream_schedule (peak_stream s, peak_task task)
 Schedule a task for a stream.

void peak_stream_unschedule (peak_stream s, peak_task task)
 Unschedule a task for a stream.


Function Documentation

void peak_stream_schedule peak_stream  s,
peak_task  task
 

Schedule a task for a stream.

Schedule a task on which you can be notified. It will call your event callback function when an event is available for this stream.

Parameters:
s The stream reference.
task The task reference (the current implementation only support peak_task_self()).

void peak_stream_unschedule peak_stream  s,
peak_task  task
 

Unschedule a task for a stream.

Parameters:
s The stream reference.
task The task reference (the current implementation only support peak_task_self()).


Generated on Thu Jan 8 18:16:24 2004 for the PEAK Library by doxygen     SourceForge.net Logo