Tags: plgd-dev/go-coap
Tags
Fix UDP Socket Binding Issue on Linux for IPv4 and IPv6 (#582) * Fix UDP Socket Binding Issue on Linux for IPv4 and IPv6 On Linux, when using UDP sockets, both IPv6 and IPv4 addresses are bound to the same socket by default. This can cause issues when sending and receiving packets across different address families. Specifically, if we receive a packet from an IPv4 address, attempting to send a response using an IPv6 address fails.
Blockwise: Allow transfer via NonConfirmable messages (#548) *Blockwise: Allow transfer via NonConfirmable messages Ensured the request type is correctly set during write operations, enhancing reliability and consistency in data handling. --------- Co-authored-by: Alberto Zambrano <[email protected]> Co-authored-by: Jozef Kralik <[email protected]>
Enhance Options Buffer for >16 Message Unmarshaling Previously, the connection was being closed due to unmarshaling failures when more than 16 options were included in the message. This fix addresses the issue by increasing the buffer size to accommodate a higher number of options.
Add Request Monitoring Feature to CoAP Connection The WithRequestMonitor function has been implemented to enable request monitoring for the connection. This function is called for each CoAP message received from the peer before it is processed. Details of the Feature: - Functionality: WithRequestMonitor allows developers to implement custom request monitoring logic for incoming CoAP messages. - Error Handling: If the function returns an error, the connection is closed, providing a mechanism to handle and respond to issues in the monitoring process. - Message Dropping: If the function returns true, the incoming message is dropped, allowing for selective handling or filtering of messages based on monitoring criteria. --------- Co-authored-by: Jeff Welder <[email protected]>
PreviousNext