@@ -67,34 +67,34 @@ bool test_coap_connection_handler_open_connection()
67
67
nsdynmemlib_stub .returnCounter = 1 ;
68
68
coap_conn_handler_t * handler = connection_handler_create (& receive_from_sock_cb , NULL , NULL , NULL );
69
69
70
- if ( -1 != coap_connection_handler_open_connection (NULL , 0 ,false,false,false,false) )
70
+ if ( -1 != coap_connection_handler_open_connection (NULL , 0 ,false,false,false,false, -1 ) )
71
71
return false;
72
72
73
- if ( -1 != coap_connection_handler_open_connection (handler , 0 ,false,false,false,false) )
73
+ if ( -1 != coap_connection_handler_open_connection (handler , 0 ,false,false,false,false, -1 ) )
74
74
return false;
75
75
76
76
ns_dyn_mem_free (handler );
77
77
nsdynmemlib_stub .returnCounter = 1 ;
78
78
handler = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
79
- if ( -1 != coap_connection_handler_open_connection (handler , 0 ,true,true,true,false) )
79
+ if ( -1 != coap_connection_handler_open_connection (handler , 0 ,true,true,true,false, -1 ) )
80
80
return false;
81
81
82
82
nsdynmemlib_stub .returnCounter = 2 ;
83
- if ( 0 != coap_connection_handler_open_connection (handler , 0 ,true,true,true,false) )
83
+ if ( 0 != coap_connection_handler_open_connection (handler , 0 ,true,true,true,false, -1 ) )
84
84
return false;
85
85
86
86
nsdynmemlib_stub .returnCounter = 2 ;
87
- if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,true,true) )
87
+ if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,true,true, -1 ) )
88
88
return false;
89
89
90
90
//open second one
91
91
nsdynmemlib_stub .returnCounter = 1 ;
92
92
coap_conn_handler_t * handler2 = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
93
93
nsdynmemlib_stub .returnCounter = 2 ;
94
- if ( 0 != coap_connection_handler_open_connection (handler2 , 22 ,false,true,true,true) )
94
+ if ( 0 != coap_connection_handler_open_connection (handler2 , 22 ,false,true,true,true, -1 ) )
95
95
return false;
96
96
97
- if ( 0 != coap_connection_handler_open_connection (handler , 23 ,false,false,false,false) )
97
+ if ( 0 != coap_connection_handler_open_connection (handler , 23 ,false,false,false,false, -1 ) )
98
98
return false;
99
99
100
100
connection_handler_destroy (handler2 );
@@ -115,7 +115,7 @@ bool test_coap_connection_handler_send_data()
115
115
nsdynmemlib_stub .returnCounter = 1 ;
116
116
coap_conn_handler_t * handler = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
117
117
nsdynmemlib_stub .returnCounter = 2 ;
118
- if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,false,false) )
118
+ if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,false,false, -1 ) )
119
119
return false;
120
120
121
121
if ( -1 != coap_connection_handler_send_data (handler , & addr , ns_in6addr_any , NULL , 0 , true))
@@ -128,7 +128,7 @@ bool test_coap_connection_handler_send_data()
128
128
nsdynmemlib_stub .returnCounter = 1 ;
129
129
handler = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
130
130
nsdynmemlib_stub .returnCounter = 4 ;
131
- if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,false,false) )
131
+ if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,false,false, -1 ) )
132
132
return false;
133
133
134
134
if ( -1 != coap_connection_handler_send_data (handler , & addr , ns_in6addr_any , NULL , 0 , true))
@@ -146,7 +146,7 @@ bool test_coap_connection_handler_send_data()
146
146
nsdynmemlib_stub .returnCounter = 1 ;
147
147
handler = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
148
148
nsdynmemlib_stub .returnCounter = 2 ;
149
- if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,false,false,false) )
149
+ if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,false,false,false, -1 ) )
150
150
return false;
151
151
152
152
@@ -157,7 +157,7 @@ bool test_coap_connection_handler_send_data()
157
157
nsdynmemlib_stub .returnCounter = 1 ;
158
158
handler = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
159
159
nsdynmemlib_stub .returnCounter = 2 ;
160
- if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,false,true,false) )
160
+ if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,false,true,false, -1 ) )
161
161
return false;
162
162
163
163
socket_api_stub .int8_value = 7 ;
@@ -181,7 +181,7 @@ bool test_coap_connection_handler_virtual_recv()
181
181
nsdynmemlib_stub .returnCounter = 1 ;
182
182
coap_conn_handler_t * handler = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
183
183
nsdynmemlib_stub .returnCounter = 2 ;
184
- if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,true,false) )
184
+ if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,true,false, -1 ) )
185
185
return false;
186
186
187
187
if ( -1 != coap_connection_handler_virtual_recv (handler ,buf , 12 , NULL , 0 ) )
@@ -214,7 +214,7 @@ bool test_coap_connection_handler_virtual_recv()
214
214
nsdynmemlib_stub .returnCounter = 1 ;
215
215
coap_conn_handler_t * handler2 = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , & get_passwd_cb , & sec_done_cb );
216
216
nsdynmemlib_stub .returnCounter = 2 ;
217
- if ( 0 != coap_connection_handler_open_connection (handler2 , 24 ,false,true,true,false) )
217
+ if ( 0 != coap_connection_handler_open_connection (handler2 , 24 ,false,true,true,false, -1 ) )
218
218
return false;
219
219
220
220
nsdynmemlib_stub .returnCounter = 3 ;
@@ -243,7 +243,7 @@ bool test_coap_connection_handler_virtual_recv()
243
243
nsdynmemlib_stub .returnCounter = 1 ;
244
244
coap_conn_handler_t * handler3 = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , & get_passwd_cb , & sec_done_cb );
245
245
nsdynmemlib_stub .returnCounter = 2 ;
246
- if ( 0 != coap_connection_handler_open_connection (handler3 , 26 ,false,false,true,false) )
246
+ if ( 0 != coap_connection_handler_open_connection (handler3 , 26 ,false,false,true,false, -1 ) )
247
247
return false;
248
248
249
249
nsdynmemlib_stub .returnCounter = 3 ;
@@ -265,7 +265,7 @@ bool test_coap_connection_handler_socket_belongs_to()
265
265
nsdynmemlib_stub .returnCounter = 1 ;
266
266
coap_conn_handler_t * handler = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
267
267
nsdynmemlib_stub .returnCounter = 2 ;
268
- if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,true,false) )
268
+ if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,true,false, -1 ) )
269
269
return false;
270
270
271
271
if ( true != coap_connection_handler_socket_belongs_to (handler , 0 ) )
@@ -288,7 +288,7 @@ bool test_timer_callbacks()
288
288
nsdynmemlib_stub .returnCounter = 1 ;
289
289
coap_conn_handler_t * handler = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
290
290
nsdynmemlib_stub .returnCounter = 2 ;
291
- if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,true,false) )
291
+ if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,true,false, -1 ) )
292
292
return false;
293
293
294
294
//handler->socket->data still in memory
@@ -347,7 +347,7 @@ bool test_socket_api_callbacks()
347
347
nsdynmemlib_stub .returnCounter = 1 ;
348
348
coap_conn_handler_t * handler = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
349
349
nsdynmemlib_stub .returnCounter = 2 ;
350
- if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,false,true,false) )
350
+ if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,false,true,false, -1 ) )
351
351
return false;
352
352
353
353
if ( socket_api_stub .recv_cb ){
@@ -369,7 +369,7 @@ bool test_socket_api_callbacks()
369
369
nsdynmemlib_stub .returnCounter = 1 ;
370
370
coap_conn_handler_t * handler2 = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , & get_passwd_cb , & sec_done_cb );
371
371
nsdynmemlib_stub .returnCounter = 2 ;
372
- if ( 0 != coap_connection_handler_open_connection (handler2 , 22 ,false,true,true,false) )
372
+ if ( 0 != coap_connection_handler_open_connection (handler2 , 22 ,false,true,true,false, -1 ) )
373
373
return false;
374
374
375
375
if ( socket_api_stub .recv_cb ){
@@ -425,7 +425,7 @@ bool test_security_callbacks()
425
425
nsdynmemlib_stub .returnCounter = 1 ;
426
426
coap_conn_handler_t * handler = connection_handler_create (& receive_from_sock_cb , & send_to_sock_cb , NULL , NULL );
427
427
nsdynmemlib_stub .returnCounter = 2 ;
428
- if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,true,false) )
428
+ if ( 0 != coap_connection_handler_open_connection (handler , 22 ,false,true,true,false, -1 ) )
429
429
return false;
430
430
431
431
if ( socket_api_stub .recv_cb ){
0 commit comments