Go to the source code of this file.
Defines | |
#define | script_bind_cmds script_LTX_script_bind_cmds |
#define | script_config_cmds script_LTX_script_config_cmds |
#define | script_export script_LTX_script_export |
#define | script_log_cmds script_LTX_script_log_cmds |
#define | start script_LTX_start |
#define | script_misc_cmds script_LTX_script_misc_cmds |
#define | script_net_cmds script_LTX_script_net_cmds |
#define | script_dns_cmds script_LTX_script_dns_cmds |
#define | script_new_user_cmds script_LTX_script_new_user_cmds |
#define | script_party_cmds script_LTX_script_party_cmds |
#define | script_timer_cmds script_LTX_script_timer_cmds |
#define | script_event_cleanup script_LTX_script_event_cleanup |
#define | socket_owner script_LTX_socket_owner |
Functions | |
void | script_event_cleanup (egg_module_t *m) |
Variables | |
event_owner_t | socket_owner |
#define script_bind_cmds script_LTX_script_bind_cmds |
Definition at line 4 of file egg_script_internal.h.
#define script_config_cmds script_LTX_script_config_cmds |
Definition at line 5 of file egg_script_internal.h.
#define script_dns_cmds script_LTX_script_dns_cmds |
Definition at line 11 of file egg_script_internal.h.
#define script_event_cleanup script_LTX_script_event_cleanup |
#define script_export script_LTX_script_export |
Definition at line 6 of file egg_script_internal.h.
#define script_log_cmds script_LTX_script_log_cmds |
Definition at line 7 of file egg_script_internal.h.
#define script_misc_cmds script_LTX_script_misc_cmds |
Definition at line 9 of file egg_script_internal.h.
#define script_net_cmds script_LTX_script_net_cmds |
Definition at line 10 of file egg_script_internal.h.
#define script_new_user_cmds script_LTX_script_new_user_cmds |
Definition at line 12 of file egg_script_internal.h.
#define script_party_cmds script_LTX_script_party_cmds |
Definition at line 13 of file egg_script_internal.h.
#define script_timer_cmds script_LTX_script_timer_cmds |
Definition at line 14 of file egg_script_internal.h.
#define socket_owner script_LTX_socket_owner |
#define start script_LTX_start |
Definition at line 8 of file egg_script_internal.h.
void script_event_cleanup | ( | egg_module_t * | m | ) |
Definition at line 73 of file scriptnet.c.
References script_net_info::idx, event_owner_b::module, script_net_info::next, NULL, script_net_info::on_connect, script_net_info::on_delete, event_owner_b::on_delete, script_net_info::on_eof, script_net_info::on_newclient, script_net_info::on_read, script_net_info::on_written, script_callback_b::owner, and sockbuf_delete().
00073 { 00074 script_net_info_t *i, *next; 00075 00076 for (i = script_net_info_head; i; i = next) { 00077 next = i->next; 00078 if (i->on_connect && i->on_connect->owner && i->on_connect->owner->module == module) { 00079 if (i->on_connect->owner->on_delete) i->on_connect->owner->on_delete(i->on_connect->owner, i->on_connect); 00080 i->on_connect = NULL; 00081 } 00082 if (i->on_eof && i->on_eof->owner && i->on_eof->owner->module == module) { 00083 if (i->on_eof->owner->on_delete) i->on_eof->owner->on_delete(i->on_eof->owner, i->on_eof); 00084 i->on_eof = NULL; 00085 } 00086 if (i->on_newclient && i->on_newclient->owner && i->on_newclient->owner->module == module) { 00087 if (i->on_newclient->owner->on_delete) i->on_newclient->owner->on_delete(i->on_newclient->owner, i->on_newclient); 00088 i->on_newclient = NULL; 00089 } 00090 if (i->on_read && i->on_read->owner && i->on_read->owner->module == module) { 00091 if (i->on_read->owner->on_delete) i->on_read->owner->on_delete(i->on_read->owner, i->on_read); 00092 i->on_read = NULL; 00093 } 00094 if (i->on_written && i->on_written->owner && i->on_written->owner->module == module) { 00095 if (i->on_written->owner->on_delete) i->on_written->owner->on_delete(i->on_written->owner, i->on_written); 00096 i->on_written = NULL; 00097 } 00098 if (i->on_delete && i->on_delete->owner && i->on_delete->owner->module == module) { 00099 if (i->on_delete->owner->on_delete) i->on_delete->owner->on_delete(i->on_delete->owner, i->on_delete); 00100 i->on_delete = NULL; 00101 } 00102 if (!i->on_connect && !i->on_eof && !i->on_newclient && !i->on_read && !i->on_written && !i->on_delete) sockbuf_delete(i->idx); 00103 } 00104 }
Definition at line 19 of file egg_script_internal.h.