Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Macros | |
#define | fdset_create() fdset_create_real(-1) |
Typedefs | |
typedef struct FDSet | FDSet |
typedef void | fdset_callback_t(int fd, int revents, void *data) |
Functions | |
FDSet * | fdset_create_real (long timeout) |
void | fdset_destroy (FDSet *set) |
void | fdset_register (FDSet *set, int fd, int events, fdset_callback_t callback, void *data) |
void | fdset_listen (FDSet *set, int fd, int mask, int events) |
void | fdset_unregister (FDSet *set, int fd) |
void | fdset_set_timeout (FDSet *set, long timeout) |
#define fdset_create | ( | ) | fdset_create_real(-1) |
typedef void fdset_callback_t(int fd, int revents, void *data) |
FDSet* fdset_create_real | ( | long | timeout | ) |
Definition at line 368 of file fdset.c.
References error(), fdset_destroy(), gwlist_create, gwthread_create, poller(), and action::timeout.
Referenced by port_add(), and start_client_threads().
void fdset_destroy | ( | FDSet * | set | ) |
Definition at line 398 of file fdset.c.
References action_create(), action_destroy_item(), action::DESTROY, error(), gwlist_destroy(), gwlist_len(), gwthread_join(), gwthread_self(), submit_action(), and warning().
Referenced by client_shutdown(), fdset_create_real(), handle_action(), port_remove(), and start_client_threads().
void fdset_listen | ( | FDSet * | set, |
int | fd, | ||
int | mask, | ||
int | events | ||
) |
Definition at line 470 of file fdset.c.
References action(), action_create(), action::events, action::fd, find_entry(), gw_assert(), gwthread_self(), action::LISTEN, action::mask, submit_action(), and warning().
Referenced by handle_action(), unlocked_register_pollin(), and unlocked_register_pollout().
void fdset_register | ( | FDSet * | set, |
int | fd, | ||
int | events, | ||
fdset_callback_t | callback, | ||
void * | data | ||
) |
Definition at line 425 of file fdset.c.
References action(), action_create(), action::callback, action::data, action::events, action::fd, gw_assert(), gwthread_self(), action::REGISTER, and submit_action_nosync().
Referenced by conn_register_real(), and handle_action().
void fdset_set_timeout | ( | FDSet * | set, |
long | timeout | ||
) |
Set timeout in seconds for this FDSet.
Definition at line 547 of file fdset.c.
References action(), action_create(), gw_assert(), gwthread_self(), action::SET_TIMEOUT, submit_action(), and action::timeout.
Referenced by http_set_client_timeout(), and port_set_timeout().
void fdset_unregister | ( | FDSet * | set, |
int | fd | ||
) |
Definition at line 510 of file fdset.c.
References action(), action_create(), action::fd, find_entry(), gw_assert(), gwthread_self(), remove_entry(), submit_action(), action::UNREGISTER, and warning().
Referenced by conn_destroy(), conn_unregister(), and handle_action().