coap_session, net.c: Add debug messages on TCP RX/TX.

This commit is contained in:
jcmichelou committed 2017-10-21 16:11:14 +02:00
1 parent 6bf4856e4c
commit 9bb8396b23
3 files changed
+38 -6

No files matched your search

+19 -2
View File
@@ -198,8 +198,9 @@ coap_session_t *coap_new_server_session(
);
/**
* Function interface for data transmission. This function returns the number of
* bytes that have been transmitted, or a value less than zero on error.
* Function interface for datagram data transmission. This function returns
* the number of bytes that have been transmitted, or a value less than zero
* on error.
*
* @param session Session to send data on.
* @param data The data to send.
@@ -211,6 +212,22 @@ coap_session_t *coap_new_server_session(
ssize_t coap_session_send(coap_session_t *session,
const uint8_t *data, size_t datalen);
/**
* Function interface for stream data transmission. This function returns
* the number of bytes that have been transmitted, or a value less than zero
* on error. The number of bytes written may be less than datalen because of
* congestion control.
*
* @param session Session to send data on.
* @param data The data to send.
* @param datalen The actual length of @p data.
*
* @return The number of bytes written on success, or a value
* less than zero on error.
*/
ssize_t coap_session_write(coap_session_t *session,
const uint8_t *data, size_t datalen);
/**
* Send a pdu according to the session's protocol. This function returns
* the number of bytes that have been transmitted, or a value less than zero