29 #include <hicn/core/connectionState.h>
31 #include <hicn/core/ticks.h>
32 #include <hicn/io/addressPair.h>
33 #include <hicn/utils/address.h>
36 #define PACKET_TYPE_PROBE_REQUEST 5
37 #define PACKET_TYPE_PROBE_REPLY 6
76 bool (*send)(
IoOperations *ops,
const Address *nexthop, Message *message);
79 const Address *(*getRemoteAddress)(
const IoOperations *ops);
80 const AddressPair *(*getAddressPair)(
const IoOperations *ops);
86 list_connections_type (*getConnectionType)(
const IoOperations *ops);
89 void (*setState)(
IoOperations *ops, connection_state_t state);
90 connection_state_t (*getAdminState)(
const IoOperations *ops);
91 void (*setAdminState)(
IoOperations *ops, connection_state_t admin_state);
94 void (*setPriority)(
IoOperations *ops, uint32_t priority);
96 const char * (*getInterfaceName)(
const IoOperations *ops);
191 bool ioOperations_Send(
IoOperations *ops,
const Address *nexthop,
226 const Address *ioOperations_GetRemoteAddress(
const IoOperations *ops);
257 const AddressPair *ioOperations_GetAddressPair(
const IoOperations *ops);
329 unsigned ioOperations_GetConnectionId(
const IoOperations *ops);
358 const void *ioOperations_Class(
const IoOperations *ops);
383 list_connections_type ioOperations_GetConnectionType(
const IoOperations *ops);
385 void ioOperations_SendProbe(
IoOperations *ops, uint8_t *message);
395 connection_state_t ioOperations_GetState(
const IoOperations *ops);
403 void ioOperations_SetState(
IoOperations *ops, connection_state_t state);
412 connection_state_t ioOperations_GetAdminState(
const IoOperations *ops);
420 void ioOperations_SetAdminState(
IoOperations *ops, connection_state_t admin_state);
430 uint32_t ioOperations_GetPriority(
const IoOperations *ops);
438 void ioOperations_SetPriority(
IoOperations *ops, uint32_t priority);
447 const char * ioOperations_GetInterfaceName(
const IoOperations *ops);