Show
Ignore:
Timestamp:
03/16/10 05:39:53 (2 years ago)
Author:
D.J. Capelis <dev@…>
Parents:
ca8ba0ad6cd45804e54a97be29c0616758a591a9
Children:
afa113a315cc3a8540fbd86ca2667b9be278dd0b
git-committer:
D.J. Capelis <dev@capelis.dj> / 2010-03-16T05:39:53Z-0700
Message:

Refactor: Less ugly, less broken and less painful. Cost: -40 lines.

I'm very pleased with this tradeoff. This refactor has been needed for
a long time. This should not only make services easier to write, but
should allow me to split out services into service modules now, which
has been a goal for awhile that this whole refactor needed to happen to
really do. Now we can just pass the socket structure to the modularized
services and for the most part most services will be able to do most of
what they need to do. There's going to still need to be some magic I
fear, but less.

Though given how simple things are, splitting these things out into
modules may not even be as necessary anymore.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • handler.h

    rca8ba0a rfc4ae5a  
    22struct service * parse(size_t * offset, size_t * size, char * getbuffer, char * buffer, struct session * s); 
    33void send_header(struct session * s, int id, int flags, int len); 
     4void talkback_len(struct session * s, char * msg, int length); 
     5void talkback(struct session * s, char * msg); 
     6int gettalk(struct session * s, char * buffer, int length); 
    47 
    58#define NEW_PLEX 1