diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-02-18 10:56:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-02-18 10:56:49 +0000 |
commit | 2fd90aea1831942cda49d6635e95c86d8e494966 (patch) | |
tree | d7182493aa06976f252a0bdce34228e39ee8d050 /hicn-light/src/io/hicnConnection.c | |
parent | 7465d7ee3fbae80d24342930ad78682a6e674bb9 (diff) | |
parent | 79e0d4f89c4d532189aae06cc5dfbc14e3269703 (diff) |
Merge "[HICN-50] Added udp application connector."
Diffstat (limited to 'hicn-light/src/io/hicnConnection.c')
-rw-r--r-- | hicn-light/src/io/hicnConnection.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hicn-light/src/io/hicnConnection.c b/hicn-light/src/io/hicnConnection.c index 6def8ed43..991c0064e 100644 --- a/hicn-light/src/io/hicnConnection.c +++ b/hicn-light/src/io/hicnConnection.c @@ -75,6 +75,7 @@ typedef struct hicn_state { // Prototypes static bool _send(IoOperations *ops, const Address *nexthop, Message *message); +static bool _sendCommandResponse(IoOperations *ops, struct iovec *message); static const Address *_getRemoteAddress(const IoOperations *ops); static const AddressPair *_getAddressPair(const IoOperations *ops); static unsigned _getConnectionId(const IoOperations *ops); @@ -100,6 +101,7 @@ static const void *_streamConnection_Class(const IoOperations *ops) { static IoOperations _template = {.closure = NULL, .send = &_send, + .sendCommandResponse = &_sendCommandResponse, .getRemoteAddress = &_getRemoteAddress, .getAddressPair = &_getAddressPair, .getConnectionId = &_getConnectionId, @@ -253,7 +255,6 @@ static unsigned _getConnectionId(const IoOperations *ops) { * sends a message to the peer. * * @param dummy is ignored. . - * @return <#return#> */ static bool _send(IoOperations *ops, const Address *dummy, Message *message) { parcAssertNotNull(ops, "Parameter ops must be non-null"); @@ -328,6 +329,12 @@ static bool _send(IoOperations *ops, const Address *dummy, Message *message) { return true; } +static bool _sendCommandResponse(IoOperations *ops, struct iovec *message) { + //XXX this should be nerver called since we do not handle control messages + //with hicn connections, so nothing to do here! + return false; +} + static list_connections_type _getConnectionType(const IoOperations *ops) { return CONN_HICN; } |