summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Michael Adam [Thu, 27 Aug 2009 11:51:37 +0000 (13:51 +0200)]
listen_on_socket: only hand out the socket fd when the complet func succeede
and log the success at level INFO
Michael
Michael Adam [Thu, 27 Aug 2009 11:49:03 +0000 (13:49 +0200)]
accept_connection: log accepted conneciton a level INFO, and log the fd
Michael
Michael Adam [Thu, 27 Aug 2009 11:48:25 +0000 (13:48 +0200)]
debug: remove currently unneeded this_log_level
Michael
Michael Adam [Thu, 27 Aug 2009 11:47:11 +0000 (13:47 +0200)]
correctly zero out a new event contex upon creation.
Michael
Michael Adam [Thu, 27 Aug 2009 11:45:44 +0000 (13:45 +0200)]
build with debugging symbols
Michael
Michael Adam [Thu, 27 Aug 2009 10:24:17 +0000 (12:24 +0200)]
event_loop_once: only ever run one event handler in one loop...
Michael
Michael Adam [Thu, 27 Aug 2009 10:23:56 +0000 (12:23 +0200)]
Makefile: use variable "CC" that we have...
Michael
Michael Adam [Thu, 27 Aug 2009 10:21:07 +0000 (12:21 +0200)]
quad_client_loop: make address of host to connect to configurable by "-h"
Michael
Michael Adam [Thu, 27 Aug 2009 10:20:41 +0000 (12:20 +0200)]
quad_server: make listen address configurable by new parameter "-l"
Michael
Michael Adam [Thu, 27 Aug 2009 10:20:02 +0000 (12:20 +0200)]
events_loop_once : concatenate if statements
Michael
Michael Adam [Thu, 27 Aug 2009 10:14:33 +0000 (12:14 +0200)]
quad_server: listen on the ipv4 wildcard address by default
Michael
Michael Adam [Thu, 27 Aug 2009 10:12:59 +0000 (12:12 +0200)]
add dlist.h - macros for doubly linked lists (not used - yet)
Michael
Michael Adam [Thu, 27 Aug 2009 10:11:07 +0000 (12:11 +0200)]
quad_server: make port and debug level configurable via getopt.
Michael
Michael Adam [Thu, 27 Aug 2009 10:10:20 +0000 (12:10 +0200)]
quad_client_loop: end the event loop when there are no events left.
Michael
Michael Adam [Thu, 27 Aug 2009 10:09:31 +0000 (12:09 +0200)]
quad_client_loop: use strdup, not asprintf
Michael
Michael Adam [Thu, 27 Aug 2009 09:44:54 +0000 (11:44 +0200)]
track number of registered events in event_context
and provide an accessor event_num_events()
Michael
Michael Adam [Thu, 27 Aug 2009 08:15:49 +0000 (10:15 +0200)]
quad_client_loop: make log level, num clients, num iterations and port configurable from cmdline.
Michael
Michael Adam [Wed, 26 Aug 2009 23:55:14 +0000 (01:55 +0200)]
add a event-loop based variant of the quad client.
Michael
Michael Adam [Wed, 26 Aug 2009 21:17:12 +0000 (23:17 +0200)]
allocate (and free) the data passed to the write handler
Michael
Michael Adam [Wed, 26 Aug 2009 20:49:05 +0000 (22:49 +0200)]
events.c: convert one forgotten fprintf->DEBUG
Michael
Michael Adam [Wed, 26 Aug 2009 20:48:18 +0000 (22:48 +0200)]
use DEBUG instead of fprintf in sockets.c
Michael
Michael Adam [Wed, 26 Aug 2009 20:38:49 +0000 (22:38 +0200)]
utils: use DEBUG instead of fprintf
Michael
Michael Adam [Wed, 26 Aug 2009 20:36:04 +0000 (22:36 +0200)]
use DEBUG in quad_server.c
Michael
Michael Adam [Wed, 26 Aug 2009 20:35:35 +0000 (22:35 +0200)]
events: fix segfault caused by removed events
Michael
Michael Adam [Wed, 26 Aug 2009 20:33:05 +0000 (22:33 +0200)]
Makfile: use variable CC
Michael
Michael Adam [Tue, 25 Aug 2009 22:34:09 +0000 (00:34 +0200)]
use DEBUG in events.c and adapt Makfile accordingly
Michael Adam [Tue, 25 Aug 2009 22:16:34 +0000 (00:16 +0200)]
add debug.c/h
Michael
Michael Adam [Tue, 25 Aug 2009 22:13:26 +0000 (00:13 +0200)]
add private data to events, enhance logging, several fixes.
Michael
Michael Adam [Mon, 24 Aug 2009 14:52:39 +0000 (16:52 +0200)]
add struct event_context and use this instead of global list of fd events.
users of the event systeme need to call event_context_init() first, in order
to allocate a new event context and then pass that context around to all
calls to event functions.
Michael
Michael Adam [Fri, 21 Aug 2009 09:54:43 +0000 (11:54 +0200)]
change (un)register_event() to return int as status.
Don't exit in the events.c code but always return.
Michael
Michael Adam [Mon, 17 Aug 2009 09:12:50 +0000 (11:12 +0200)]
Reduce headers included in quad_client.c
Michael
Michael Adam [Mon, 17 Aug 2009 09:11:46 +0000 (11:11 +0200)]
Reduce headers included in quad_server.c
Michael
Michael Adam [Mon, 17 Aug 2009 08:23:56 +0000 (10:23 +0200)]
Simplify Makefile (use ".c.o:" rule...)
Michael
Michael Adam [Mon, 17 Aug 2009 08:14:24 +0000 (10:14 +0200)]
Abstract event code into event.c
Michael
Michael Adam [Mon, 17 Aug 2009 07:59:28 +0000 (09:59 +0200)]
server: extract event_loop_once() function from main.
Michael
Michael Adam [Mon, 17 Aug 2009 07:33:03 +0000 (09:33 +0200)]
Move socket related functions to new module sockets.c/sockets.h
Michael
Michael Adam [Mon, 17 Aug 2009 07:19:11 +0000 (09:19 +0200)]
Commit first version of quad server / client - example fd select event code.
Michael