Tero Heinonen
9dfc6f970c
Support for setting source address to socket ( #40 )
...
When receiving data, destination (own) address is stored and given to
socket when sending reply to make sure respone comes always from same
address where request was sent. This commit supports only real socket to
real socket messages, not virtual socket, or DTLS handshake messages.
2016-10-24 11:58:53 +03:00
Tero Heinonen
9c88fcd984
Delete transactions that are not supposed to get reply ( #37 )
...
* Delete transactions that are not supposed to get reply
When sending non-confirmable request that is not supposed to get reply,
it must be deleted after sending.
Also some general code-cleaning included.
* Remove outdated transactions from queue
If transaction does not get response, it will be deleted from queue.
2016-10-18 11:55:54 +03:00
Tero Heinonen
07d72229de
Fix unittests ( #35 )
...
Adding missing stubs, and added check for nullpointer to coap message
process callback.
2016-10-05 09:38:47 +03:00
Tero Heinonen
0e4af1a4d2
Send 4.04 if URI is not found ( #34 )
...
If coap service library receives confirmable request to URI that is not
registered, it must send response COAP_MSG_CODE_RESPONSE_NOT_FOUND.
2016-10-04 09:42:29 +03:00
Arto Kinnunen
ae0579f173
Update content_type to sn_coap_content_format_e ( #27 )
...
-Update content_type to be sn_coap_content_format_e instead of uint8_t
to avoid type conversion (bugs).
-Fix compiler warnings
2016-06-28 10:45:30 +03:00
Mika Tervonen
f903edb347
Check validity of transaction pointer when sending data
2016-06-16 14:46:47 +03:00
Tero Heinonen
451d773f5f
Timer to remove secure sessions after alert is sent but not received.
2016-03-10 15:28:43 +02:00
Tero Heinonen
f5f70e2d8b
API for changing DTLS handshake message timeouts.
2016-02-19 09:49:45 +02:00
Tero Heinonen
c8794b84f9
Check for return status when opening socket
...
unittests fixed and added test to new lines.
2016-02-04 13:20:46 +02:00
Mika Tervonen
120293c03b
Remove Nanostack dependency from service api
2016-01-29 00:08:36 -08:00
Antti Kauppila
3034b1a7c7
Some naming refactored correctly
2016-01-20 13:50:13 +02:00
Seppo Takalo
c330fa884c
Update copyright headers.
2016-01-14 11:00:29 +02:00
Tero Heinonen
685e08d7d5
Warnings cleaned.
2016-01-12 09:59:15 +02:00
Antti Kauppila
1fb3daf346
Added support for closing a secure connection by giving address and port
2015-12-23 10:07:24 +02:00
Antti Kauppila
eb5aa4ef59
New CoAP service + unit tests
2015-12-21 10:00:43 +02:00