From b0bd74e35e935aa976b68c594def4e8d2c22ef95 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sat, 16 Jan 2010 11:20:23 +0100 Subject: Replaced polling loop for LCR and chan_lcr with select based event loop. Now LCR and chan_lcr will not use any CPU until there is work to do. --- socket_server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'socket_server.h') diff --git a/socket_server.h b/socket_server.h index 4177139..b3ea89a 100644 --- a/socket_server.h +++ b/socket_server.h @@ -21,6 +21,7 @@ struct admin_queue { struct admin_list { struct admin_list *next; int sock; + struct lcr_fd fd; int sockserial; char remote_name[32]; /* socket is connected remote application */ struct admin_trace_req trace; /* stores trace, if detail != 0 */ @@ -31,7 +32,6 @@ struct admin_list { extern struct admin_list *admin_first; int admin_init(void); void admin_cleanup(void); -int admin_handle(void); void admin_call_response(int adminid, int message, const char *connected, int cause, int location, int notify); int admin_message_to_join(struct admin_message *msg, int remote_id); int admin_message_from_join(int remote_id, unsigned int ref, int message_type, union parameter *param); -- cgit v1.2.3-55-g7522