Commit Graph
11 Commits
Author SHA1 Message Date
Olaf Bergmann 4dc004dc88 internalize definition of coap_packet_t for POSIX only
Contiki and lwIP need to know the size of struct coap_packet_t to
set up their memory pool. Therefore, it must be defined in coap_io.h.
2015-02-15 22:41:57 +01:00
Olaf Bergmann ebb00c4dfe Merge remote-tracking branch 'coap-lwip/chrysn-lwip-fixes' into develop
Conflicts:
	coap_io.h
	mem.h
	net.c
	pdu.c
2015-02-14 20:45:48 +01:00
chrysn 4f6c81a5a6 lwip packets: allow pbuf to be extracted 2015-01-16 12:04:03 +01:00
chrysn fc18a4992b lwip: implement coap_packet_copy_source 2015-01-16 08:44:12 +01:00
chrysn 990098ab50 endpoint adaptions for lwip
possibly, endpoints should be made implementation-private just as
packets are
2015-01-15 13:34:21 +01:00
chrysn 0ca090fbb6 make the internals of coap_packet_t private
they are now only accessed using helper functions, for a package looks
different in lwip.

in addition, the local_interface is now passed to coap_handle_message
not as an argument (because that would mean mixing different arguments
in the population of the node's local interface), but as a part of the
incoming package (as assigned in coap_network_read).
2015-01-15 13:33:35 +01:00
Olaf Bergmann c47d2fea3c renamed config.h to coap_config.h to avoid name clashes 2014-09-15 17:31:54 +02:00
Olaf Bergmann cb9e24c010 Use coap_network_read() and coap_network_send() in Contiki 2014-09-15 11:05:56 +02:00
Olaf Bergmann d5dc48d97a Track local network interface for received packets.
Changed various functions to pass the local interface using the
new coap_endpoint_t abstraction. This change uses the functions
implemented earlier in commit 786ca6da (branch dcaf) but does not
use callback functions for network I/O.

This change closes bug #23 "server responds from wrong endpoint
(ipv6 address)" (POSIX only, CONTIKI and LWIP tbd).
2014-03-21 18:12:40 +01:00
Olaf Bergmann d14de4703c Merged changes from commit 10eb1db6
This change enables the use of endpoints with specific properties such
as secure transmission.
2014-03-20 12:59:43 +01:00
Olaf Bergmann 9876ea6bc9 Default network I/O functions for libcoap
This module defines a structure coap_endpoint_t that will be used to
identify the local interface for network I/O in libcoap. coap_endpoint_t
has an opaque handle and the local interface address. The tuple (handle,
address) uniquely identifies a virtual endpoint within a libcoap context.
2014-03-19 17:34:24 +01:00