replaced 'activate' with 'schedule'
authorChristian Thaeter <ct@pipapo.org>
Fri, 5 Oct 2007 14:09:53 +0000 (16:09 +0200)
committerChristian Thaeter <ct@pipapo.org>
Fri, 5 Oct 2007 14:09:53 +0000 (16:09 +0200)
main.c
rxpd.c
rxpd.h

diff --git a/main.c b/main.c
index e82fdc4..8bc2076 100644 (file)
--- a/main.c
+++ b/main.c
@@ -70,7 +70,7 @@ main (int argc, char** argv)
 
   // initialize listening connections
   // port 2374
-  rxpd_socket_activate (rxpd_socket_new_tcp4 (rxpd, NULL, 2374));
+  rxpd_socket_schedule (rxpd_socket_new_tcp4 (rxpd, NULL, 2374));
   //rxpd_socket_new_unix (rxpd, "/tmp/rxpd");
 
 
diff --git a/rxpd.c b/rxpd.c
index 2e67559..b9a0b48 100644 (file)
--- a/rxpd.c
+++ b/rxpd.c
@@ -274,7 +274,7 @@ rxpd_socket_delete (struct rxpd_socket* self)
 }
 
 struct rxpd_socket*
-rxpd_socket_activate (struct rxpd_socket* self)
+rxpd_socket_schedule (struct rxpd_socket* self)
 {
   if (self)
     {
@@ -305,8 +305,8 @@ rxpd_socket_accept (int fd, short event, void* ptr)
   struct rxpd_connection* conn =
     rxpd_connection_new (self->base, fd);
 
-  rxpd_connection_activate (conn);
-  rxpd_socket_activate (self);
+  rxpd_connection_schedule (conn);
+  rxpd_socket_schedule (self);
 }
 
 ///
@@ -452,7 +452,7 @@ rxpd_connection_delete (struct rxpd_connection* self)
 }
 
 struct rxpd_connection*
-rxpd_connection_activate (struct rxpd_connection* self)
+rxpd_connection_schedule (struct rxpd_connection* self)
 {
   if (self)
     {
@@ -540,14 +540,20 @@ case RXPD_CMD_##cmd:
       RXPD_COMMANDS
 #undef RXPD_CMD
     }
-  rxpd_connection_activate (self);
+  rxpd_connection_schedule (self);
 }
 
 void
 rxpd_connection_cmd_CHECK (int fd, short event, void* ptr)
 {
   struct rxpd_connection* self = (struct rxpd_connection*) ptr;
-  rxpd_buffer_printf (&self->out, "#ERROR: unimplemented command %s\n", &__func__[20]);
+  LLIST_FOREACH (&self->file.rules, node)
+  
+
+    //rxpd_buffer_printf (&self->out, "#ERROR: unimplemented command %s\n", &__func__[20]);
+
+
+  rxpd_connection_schedule (self);
 }
 
 void
diff --git a/rxpd.h b/rxpd.h
index 53ab46a..ccfa107 100644 (file)
--- a/rxpd.h
+++ b/rxpd.h
@@ -142,7 +142,7 @@ void
 rxpd_socket_accept (int sock, short event, void* ptr);
 
 struct rxpd_socket*
-rxpd_socket_activate (struct rxpd_socket* self);
+rxpd_socket_schedule (struct rxpd_socket* self);
 
 struct rxpd_socket*
 rxpd_socket_suspend (struct rxpd_socket* self);
@@ -203,7 +203,7 @@ rxpd_connection_delete (struct rxpd_connection* self);
 
 
 struct rxpd_connection*
-rxpd_connection_activate (struct rxpd_connection* self);
+rxpd_connection_schedule (struct rxpd_connection* self);
 
 
 struct rxpd_connection*