| 66 |
/*! |
/*! |
| 67 |
* |
* |
| 68 |
*/ |
*/ |
| 69 |
void appwoomera_run() |
void appwoomera_run(const GetOptions& opts) |
| 70 |
{ |
{ |
| 71 |
|
|
| 72 |
|
LOGDEBUG("appwoomera_run()"); |
| 73 |
|
|
| 74 |
|
/* Command line options |
| 75 |
|
*/ |
| 76 |
|
std::string opt_woomera_port = opts.getValue("woomera-port"); |
| 77 |
|
if ( opt_woomera_port.empty() ) |
| 78 |
|
{ |
| 79 |
|
opt_woomera_port = "42420"; |
| 80 |
|
} |
| 81 |
|
|
| 82 |
/* initialise woomera subsystem |
/* initialise woomera subsystem |
| 83 |
*/ |
*/ |
| 84 |
woomera_init(); |
woomera_init(); |
| 91 |
woomera_server_attr * attr = woomera_server_attr_new(); |
woomera_server_attr * attr = woomera_server_attr_new(); |
| 92 |
attr->server = server; |
attr->server = server; |
| 93 |
attr->callctlr = callctlr; |
attr->callctlr = callctlr; |
| 94 |
attr->port = 42420; |
attr->port = atoi(opt_woomera_port.c_str()); |
| 95 |
attr->timeout = 1000; |
attr->timeout = 1000; |
| 96 |
attr->callback = 0; /* function that checks apps own fdS, called by the server poll loop */ |
attr->callback = 0; /* function that checks apps own fdS, called by the server poll loop */ |
| 97 |
attr->user_data = 0; |
attr->user_data = 0; |