Connector interface
This is the connector interface, an interface designed for drivers to exchange urls. More...
Data Structures | |
| struct | nm_connector_iface_s |
Functions | |
| PUK_IFACE_TYPE (NewMad_Connector, struct nm_connector_iface_s) | |
| struct nm_connector_s * | nm_connector_create (int addr_len, const char **url) |
| create a connector object | |
| int | nm_connector_exchange (struct nm_connector_s *p_connector, const char *local_connector_url, const char *remote_connector_url, const void *local_cnx_addr, void *remote_cnx_addr) |
| dynamically exchange addresses with peer node | |
| void | nm_connector_destroy (struct nm_connector_s *p_connector) |
| destroy a connector object | |
Detailed Description
This is the connector interface, an interface designed for drivers to exchange urls.
End-users are not expected to use this interface designed only for nmad internal use. This interface is considered deprecated since it scales poorly.
Function Documentation
◆ nm_connector_create()
| struct nm_connector_s * nm_connector_create | ( | int | addr_len, |
| const char ** | url | ||
| ) |
create a connector object
◆ nm_connector_destroy()
| void nm_connector_destroy | ( | struct nm_connector_s * | p_connector | ) |
destroy a connector object
◆ nm_connector_exchange()
| int nm_connector_exchange | ( | struct nm_connector_s * | p_connector, |
| const char * | local_connector_url, | ||
| const char * | remote_connector_url, | ||
| const void * | local_cnx_addr, | ||
| void * | remote_cnx_addr | ||
| ) |
dynamically exchange addresses with peer node
◆ PUK_IFACE_TYPE()
| PUK_IFACE_TYPE | ( | NewMad_Connector | , |
| struct nm_connector_iface_s | |||
| ) |