Copyright © 2001 - 2005 SILC Project
SILC Project Website
SILC Toolkit Reference Manual
Index

SILC Toolkit Reference Manual
SILC Core Library
    SILC Authentication Interface
    SILC Message Interface
    SILC Channel Interface
    SILC Command Interface
    SILC Notify Interface
    SILC Status Types
    SILC Modes
    SILC ID Interface
    SILC ID Cache Interface
    SILC Argument Interface
    SILC Attributes Interface
    Packet Protocol Interface
SILC Utility Library
    Basic SILC Types
    SILC Buffer Interface
    SILC Buffer Format Interface
    SILC Hash Table Interface
    SILC Logging Interface
    SILC Memory Interface
    SILC Mutex Interface
    SILC Thread Interface
    SILC Network Interface
    SILC Schedule Interface
    SILC Socket Interface
    SILC Protocol Interface
    SILC Config Interface
    SILC File Util Interface
    SILC String Util Interface
    SILC UTF-8 Interface
    SILC Stringprep Interface
    SILC Util Interface
    SILC List Interface
    SILC Dynamic List Interface
    SILC VCard Interface
    SILC Application Utilities
    SILC MIME Interface
SILC Crypto Library
    Introduction to SILC RNG
    SILC RNG Interface
    SILC Cipher API
    SILC PKCS API
    SILC PKCS#1 API
    SILC Hash Interface
    SILC HMAC Interface
SILC SFTP Library
    SILC SFTP Interface
    SFTP Filesystems Interface
SILC Client Library
    Using SILC Client Library Tutorial
    Arguments for command_reply Client Operation
    SilcStatus Error Arguments in command_reply Client Operation
    Arguments for notify Client Operation
    Unicode and UTF-8 Strings in Client Library
    Client Library Interface Reference
SILC Key Exchange Library
    SILC SKE Interface
    SKE Status Types
    SKE Diffie Hellman Groups
    SKE Payloads
SILC Math Library
    SILC MP Interface
    SILC Math Interface

Resource Links
SILC Project Website
SILC Protocol Documentation
SILC White Paper
SILC FAQs





SilcTaskType

NAME
 
    typedef enum { ... } SilcTaskType;

DESCRIPTION

    SILC has three types of tasks, non-timeout tasks (tasks that perform
    over file descriptors), timeout tasks and generic tasks (tasks that
    apply to every file descriptor). This type is sent as argument for the 
    task registering function, silc_schedule_task_add.

SOURCE
    typedef enum {
      /* File descriptor task that performs some event over file descriptors.
         These tasks are for example network connections. */
      SILC_TASK_FD           = 0,
    
      /* Timeout tasks are tasks that are executed after the specified 
         time has elapsed. After the task is executed the task is removed
         automatically from the scheduler. It is safe to re-register the
         task in task callback. It is also safe to unregister a task in
         the task callback. */
      SILC_TASK_TIMEOUT,
    
      /* Generic tasks are non-timeout tasks and they apply to all file 
         descriptors, except to those that have explicitly registered a 
         non-timeout task. These tasks are there to make it simpler and faster 
         to execute common code that applies to all connections. These are,
         for example, receiving packets from network and sending packets to
         network. It doesn't make much sense to register a task that receives
         a packet from network to every connection when you can have one task
         that applies to all connections. This is what generic tasks are for.
         Generic tasks are not bound to any specific file descriptor, however,
         the correct file descriptor must be passed as argument to task
         registering function. */
      SILC_TASK_GENERIC,
    } SilcTaskType;





SILC Schedule Interface
SilcSchedule
SilcTask
SilcTaskType
SilcTaskEvent
SilcTaskPriority
SilcTaskCallback
SILC_ALL_TASKS
SILC_TASK_CALLBACK
SILC_TASK_CALLBACK_GLOBAL
silc_schedule_init
silc_schedule_uninit
silc_schedule_reinit
silc_schedule_stop
silc_schedule
silc_schedule_one
silc_schedule_wakeup
silc_schedule_get_context
silc_schedule_task_add
silc_schedule_task_del
silc_schedule_task_del_by_fd
silc_schedule_task_del_by_callback
silc_schedule_task_del_by_context
silc_schedule_set_listen_fd
silc_schedule_unset_listen_fd
silc_schedule_signal_register
silc_schedule_signal_unregister
silc_schedule_signal_call




Copyright © 2001 - 2005 SILC Project
SILC Project Website
SILC Toolkit Reference Manual
Index