diff options
Diffstat (limited to 'hicn-light/src/hicn/core/connection.h')
-rw-r--r-- | hicn-light/src/hicn/core/connection.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/hicn-light/src/hicn/core/connection.h b/hicn-light/src/hicn/core/connection.h index efe8a66b9..9d7cd7c93 100644 --- a/hicn-light/src/hicn/core/connection.h +++ b/hicn-light/src/hicn/core/connection.h @@ -65,10 +65,17 @@ Connection *connection_Acquire(Connection *connection); bool connection_Send(const Connection *conn, Message *message); /** - * @function connection_SendCommandResponse - * @abstract Sends a response (ack/nack) for a command + * @function connection_SendIOVBuffer + * @abstract Sends an IOV buffer */ -bool connection_SendCommandResponse(const Connection *conn, struct iovec *msg); +bool connection_SendIOVBuffer(const Connection *conn, struct iovec *msg, + size_t size); + +/** + * @function connection_SendBuffer + * @abstract Sends a buffer + */ +bool connection_SendBuffer(const Connection *conn, u8 * buffer, size_t length); /** * Return the `IoOperations` instance associated with the specified `Connection` @@ -151,4 +158,5 @@ bool connection_WldrAutoStartAllowed(const Connection *conn); void connection_DetectLosses(Connection *conn, Message *message); void connection_HandleWldrNotification(Connection *conn, Message *message); + #endif // connection_h |