Work in progress...

FossilOrigin-Name: 5502c7d7b329b01ff3a42bedb84a087e3bb62e80a7f22ca4abb5a1d0f3db1454
This commit is contained in:
7u83@mail.ru
2015-02-07 09:57:58 +00:00
parent 64fe08312c
commit e74e8bbf89
7 changed files with 31 additions and 76 deletions

View File

@ -878,11 +878,11 @@ void wtpman_lw_addpacket(struct wtpman *wtpman, uint8_t *packet, int len)
void wtpman_start(struct wtpman * wtpman,int dtlsmode)
{
if ( dtlsmode ){
cw_log_debug1("Starting wtpman in dtls mode");
cw_dbg(DBG_CW_INFO,"Starting wtpman in dtls mode");
pthread_create (&wtpman->thread, NULL, (void *) &wtpman_run, (void *) wtpman);
}
else{
cw_log_debug1("Starting wtpman in non-dtls mode");
cw_dbg(DBG_CW_INFO,"Starting wtpman in non-dtls mode");
pthread_create (&wtpman->thread, NULL, (void *) &wtpman_run_discovery, (void *) wtpman);
}
}