From 777c8f77b60c2300c1e6645e8068d8a326e88d95 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 24 Aug 2016 19:23:00 +0200 Subject: [PATCH] fixup! sock: Introduction of new application layer API Add `-ECONNABORT` return for sock_tcp_read and sock_tcp_write. --- sys/include/net/sock/tcp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/include/net/sock/tcp.h b/sys/include/net/sock/tcp.h index dd537d46a5..0c8798540e 100644 --- a/sys/include/net/sock/tcp.h +++ b/sys/include/net/sock/tcp.h @@ -189,6 +189,8 @@ int sock_tcp_accept(sock_tcp_queue_t *queue, sock_tcp_t **sock); * @return The number of bytes read on success. * @return 0, if no read data is available, but everything is in order. * @return -EADDRNOTAVAIL, if local of @p sock is not given. + * @return -ECONNABORTED, if the connection is aborted while waiting for the + * next data. * @return -ECONNREFUSED, if remote end point of @p sock refused to allow the * connection. * @return -ENOTCONN, when @p sock is not connected to a remote end point. @@ -209,6 +211,7 @@ ssize_t sock_tcp_read(sock_tcp_t *sock, void *data, size_t max_len, * @note Function may block. * * @return The number of bytes written on success. + * @return -ECONNABORTED, if the connection is aborted while sending @p data. * @return -ECONNRESET, if connection was reset by remote end point. * @return -ENOMEM, if no memory was available to written @p data. * @return -ENOTCONN, if @p sock is not connected to a remote end point.