Commit Graph

10 Commits (115aa3eee2d508a2c09abbff2ed364c706ed8df7)

Author SHA1 Message Date
Tero Heinonen 115aa3eee2 Delete all transactions when secure session is closed (#41)
When handshake fails, or DTLS session is closed, all transactions must
be removed from coap protocol retransmission queue. Otherwise coap
retransmission will start new handshake.
2016-10-27 09:42:59 +03:00
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
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 2be763fa66 Modified coap response callback, added parameters (#23)
* Modified coap response callback, added parameters
for source address and source port.

* version v4.0.0
2016-06-08 09:58:33 +03: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 b95d5be080 Merged token handling + updated unit tests 2015-12-21 11:56:04 +02:00
Antti Kauppila eb5aa4ef59 New CoAP service + unit tests 2015-12-21 10:00:43 +02:00