Changeset f41090dab0be1c792f9587e2d2930761969ace33

Show
Ignore:
Timestamp:
01/15/08 16:31:23 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1200414683 +0000
git-parent:

[919b09a62be1e318c5b142de70468c11e8fc980e]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1200414683 +0000
Message:

more work -- this doesn't do much except add plumbing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/Makefile.in

    r919b09a rf41090d  
    2525SUBS=utils jlog eventer 
    2626 
    27 OBJS=noitd.o 
     27OBJS=noitd.o noit_listener.o noit_console.o 
    2828 
    2929all:    noitd 
  • src/noitd.c

    rb62cf2b rf41090d  
    11#include "noit_defines.h" 
    2 #include "eventer/eventer.h" 
    32 
    43#include <stdio.h> 
    54#include <stdlib.h> 
     5 
     6#include "eventer/eventer.h" 
     7#include "utils/noit_log.h" 
     8#include "noit_listener.h" 
     9#include "noit_console.h" 
    610 
    711int stdin_handler(eventer_t e, int mask, void *closure, struct timeval *now) { 
     
    1822} 
    1923int main(int argc, char **argv) { 
     24  noit_log_init(); 
    2025  if(eventer_choose("kqueue") == -1) { 
    2126    fprintf(stderr, "Cannot choose kqueue\n"); 
     
    2833 
    2934  stdin_sample(); 
     35  noit_listener("127.0.0.1", 23123, SOCK_STREAM, 5, noit_console_handler, NULL); 
    3036  eventer_loop(); 
    3137  return 0; 
  • src/utils/Makefile.in

    rb62cf2b rf41090d  
    1010top_srcdir=@top_srcdir@ 
    1111 
    12 OBJS=noit_hash.o noit_skiplist.o 
     12OBJS=noit_hash.o noit_skiplist.o noit_log.o 
    1313 
    1414all:    libnoit_utils.a