aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/io/ioOperations.h
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-04-16 14:39:50 +0200
committerJordan Augé <jordan.auge+fdio@cisco.com>2019-04-16 15:37:53 +0200
commit3ed2badca49b8c7e636d8f8c40f532a7d3a7ba29 (patch)
treef865fe39515b3a496bfeee7ad8ef73916104caf4 /hicn-light/src/hicn/io/ioOperations.h
parentc365689250216861fd7727203ee6ba1049ad5778 (diff)
[HICN-177] Provide helpers to send, receive and process control messages
Change-Id: I5f7270568eaf24858346edebc638cf51e28cc5ad Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/io/ioOperations.h')
-rw-r--r--hicn-light/src/hicn/io/ioOperations.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/hicn-light/src/hicn/io/ioOperations.h b/hicn-light/src/hicn/io/ioOperations.h
index 115b017dc..c5e58d8b2 100644
--- a/hicn-light/src/hicn/io/ioOperations.h
+++ b/hicn-light/src/hicn/io/ioOperations.h
@@ -63,7 +63,8 @@ typedef struct io_ops IoOperations;
struct io_ops {
void *closure;
bool (*send)(IoOperations *ops, const Address *nexthop, Message *message);
- bool (*sendCommandResponse)(IoOperations *ops, struct iovec *message);
+ bool (*sendIOVBuffer)(IoOperations *ops, struct iovec *message, size_t
+ size);
const Address *(*getRemoteAddress)(const IoOperations *ops);
const AddressPair *(*getAddressPair)(const IoOperations *ops);
bool (*isUp)(const IoOperations *ops);
@@ -168,10 +169,10 @@ void ioOperations_Release(IoOperations **opsPtr);
* @endcode
*/
bool ioOperations_Send(IoOperations *ops, const Address *nexthop,
- Message *message);
+ Message *message);
-bool ioOperations_SendCommandResponse(IoOperations *ops,
- struct iovec *message);
+bool ioOperations_SendIOVBuffer(IoOperations *ops, struct iovec *message,
+ size_t size);
/**
* A connection is made up of a local and a remote address. This function
@@ -363,4 +364,5 @@ list_connections_type ioOperations_GetConnectionType(const IoOperations *ops);
Ticks ioOperations_SendProbe(IoOperations *ops, unsigned probeType,
uint8_t *message);
+
#endif // io_h