|
|
@ -240,7 +240,7 @@ PNACL_message("list init\n"); |
|
|
|
// Initialise other parts of the global state.
|
|
|
|
nn_list_init(&SELF.transports); |
|
|
|
nn_list_init(&SELF.socktypes); |
|
|
|
sleep(1); |
|
|
|
//sleep(1);
|
|
|
|
PNACL_message("transports init\n"); |
|
|
|
// Plug in individual transports.
|
|
|
|
//nn_global_add_transport(nn_ipc);
|
|
|
@ -248,36 +248,36 @@ PNACL_message("transports init\n"); |
|
|
|
//nn_global_add_transport(nn_inproc);
|
|
|
|
//nn_global_add_transport(nn_ws);
|
|
|
|
//nn_global_add_transport(nn_tcpmux);
|
|
|
|
sleep(1); |
|
|
|
//sleep(1);
|
|
|
|
PNACL_message("socktypes init\n"); |
|
|
|
// Plug in individual socktypes
|
|
|
|
nn_global_add_socktype(nn_pair_socktype); |
|
|
|
sleep(1); |
|
|
|
//sleep(1);
|
|
|
|
PNACL_message("nn_xpair_socktype init\n"); |
|
|
|
nn_global_add_socktype(nn_xpair_socktype); |
|
|
|
PNACL_message("did nn_xpair_socktype init\n"); |
|
|
|
//nn_global_add_socktype(nn_rep_socktype);
|
|
|
|
//nn_global_add_socktype(nn_req_socktype);
|
|
|
|
//nn_global_add_socktype(nn_xrep_socktype);
|
|
|
|
//nn_global_add_socktype(nn_xreq_socktype);
|
|
|
|
//nn_global_add_socktype(nn_respondent_socktype);
|
|
|
|
//nn_global_add_socktype(nn_surveyor_socktype);
|
|
|
|
//nn_global_add_socktype(nn_xrespondent_socktype);
|
|
|
|
//nn_global_add_socktype(nn_xsurveyor_socktype);
|
|
|
|
//nn_global_add_socktype(nn_pub_socktype);
|
|
|
|
//nn_global_add_socktype(nn_sub_socktype);
|
|
|
|
//nn_global_add_socktype(nn_xpub_socktype);
|
|
|
|
//nn_global_add_socktype(nn_xsub_socktype);
|
|
|
|
//nn_global_add_socktype(nn_push_socktype);
|
|
|
|
//nn_global_add_socktype(nn_xpush_socktype);
|
|
|
|
//nn_global_add_socktype(nn_pull_socktype);
|
|
|
|
//nn_global_add_socktype(nn_xpull_socktype);
|
|
|
|
//nn_global_add_socktype(nn_bus_socktype);
|
|
|
|
//nn_global_add_socktype(nn_xbus_socktype);
|
|
|
|
sleep(1); |
|
|
|
nn_global_add_socktype(nn_rep_socktype); |
|
|
|
nn_global_add_socktype(nn_req_socktype); |
|
|
|
nn_global_add_socktype(nn_xrep_socktype); |
|
|
|
nn_global_add_socktype(nn_xreq_socktype); |
|
|
|
nn_global_add_socktype(nn_respondent_socktype); |
|
|
|
nn_global_add_socktype(nn_surveyor_socktype); |
|
|
|
nn_global_add_socktype(nn_xrespondent_socktype); |
|
|
|
nn_global_add_socktype(nn_xsurveyor_socktype); |
|
|
|
nn_global_add_socktype(nn_pub_socktype); |
|
|
|
nn_global_add_socktype(nn_sub_socktype); |
|
|
|
nn_global_add_socktype(nn_xpub_socktype); |
|
|
|
nn_global_add_socktype(nn_xsub_socktype); |
|
|
|
nn_global_add_socktype(nn_push_socktype); |
|
|
|
nn_global_add_socktype(nn_xpush_socktype); |
|
|
|
nn_global_add_socktype(nn_pull_socktype); |
|
|
|
nn_global_add_socktype(nn_xpull_socktype); |
|
|
|
nn_global_add_socktype(nn_bus_socktype); |
|
|
|
nn_global_add_socktype(nn_xbus_socktype); |
|
|
|
//sleep(1);
|
|
|
|
PNACL_message("do pool init\n"); |
|
|
|
nn_pool_init(&SELF.pool); // Start the worker threads
|
|
|
|
sleep(1); |
|
|
|
//sleep(1);
|
|
|
|
PNACL_message("do FSM init\n"); |
|
|
|
nn_fsm_init_root(&SELF.fsm,nn_global_handler,nn_global_shutdown,&SELF.ctx); // Start FSM
|
|
|
|
SELF.state = NN_GLOBAL_STATE_IDLE; |
|
|
|