diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-24 16:57:16 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-24 16:57:16 +0000 |
commit | 852e8b6f259af3233844af6aa6413bf3cc8ed237 (patch) | |
tree | 97330de9a899f8c751e96b1efb38fda4856f7c2b /Source/charon/daemon.c | |
parent | 8277be60531af90687cc128df122d5d43272f1f0 (diff) | |
download | strongswan-852e8b6f259af3233844af6aa6413bf3cc8ed237.tar.bz2 strongswan-852e8b6f259af3233844af6aa6413bf3cc8ed237.tar.xz |
- connection is initialized
Diffstat (limited to 'Source/charon/daemon.c')
-rw-r--r-- | Source/charon/daemon.c | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/Source/charon/daemon.c b/Source/charon/daemon.c index 3eef8d661..57959b0cc 100644 --- a/Source/charon/daemon.c +++ b/Source/charon/daemon.c @@ -39,6 +39,7 @@ #include <queues/event_queue.h> #include <queues/job_queue.h> #include <queues/send_queue.h> +#include <queues/jobs/initiate_ike_sa_job.h> /* function declaration (defined and described after main function) */ @@ -132,15 +133,15 @@ int main() destroy_and_exit(-1); } -// int i; -// for(i = 0; i<1; i++) -// { -// initiate_ike_sa_job_t *initiate_job; -// -// initiate_job = initiate_ike_sa_job_create("pinflb30"); -// global_event_queue->add_relative(global_event_queue, (job_t*)initiate_job, i * 1000); -// -// } + int i; + for(i = 0; i<1; i++) + { + initiate_ike_sa_job_t *initiate_job; + + initiate_job = initiate_ike_sa_job_create("pinflb31"); + global_event_queue->add_relative(global_event_queue, (job_t*)initiate_job, i * 1000); + + } logger->log(logger,CONTROL|MORE,"going to wait for exit signal"); /* go and handle signals*/ @@ -246,28 +247,34 @@ static status_t initialize_globals() */ static void destroy_globals() { - if (global_ike_sa_manager != NULL) + if (global_job_queue != NULL) { + logger->log(logger,CONTROL|MOST,"destroy global_job_queue"); global_job_queue->destroy(global_job_queue); } if (global_event_queue != NULL) { + logger->log(logger,CONTROL|MOST,"destroy global_event_queue"); global_event_queue->destroy(global_event_queue); } if (global_send_queue != NULL) { + logger->log(logger,CONTROL|MOST,"destroy global_send_queue"); global_send_queue->destroy(global_send_queue); } if (global_socket != NULL) { + logger->log(logger,CONTROL|MOST,"destroy global_socket"); global_socket->destroy(global_socket); } if (global_ike_sa_manager != NULL) { + logger->log(logger,CONTROL|MOST,"destroy global_ike_sa_manager"); global_ike_sa_manager->destroy(global_ike_sa_manager); } if (global_configuration_manager != NULL) { + logger->log(logger,CONTROL|MOST,"destroy global_configuration_manager"); global_configuration_manager->destroy(global_configuration_manager); } } |