X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink.h;fp=src%2Fmeshlink.h;h=8a101741635ba4f60f7bec8be3ce3e1e8012dbda;hb=136acd9c81c813533015e566c23f55f4d51b069c;hp=ee2c3f0ae41e556932c875259750972d9b513719;hpb=8bb44d97e49251dbf4c8d6b66956b91c7d2144cf;p=meshlink diff --git a/src/meshlink.h b/src/meshlink.h index ee2c3f0a..8a101741 100644 --- a/src/meshlink.h +++ b/src/meshlink.h @@ -562,6 +562,20 @@ extern void meshlink_channel_close(meshlink_handle_t *mesh, meshlink_channel_t * */ extern ssize_t meshlink_channel_send(meshlink_handle_t *mesh, meshlink_channel_t *channel, const void *data, size_t len); +/// Hint that a hostname may be found at an address +/** This function indicates to meshlink that the given hostname is likely found + * at the given IP address and port. + * + * @param mesh A handle which represents an instance of MeshLink. + * @param hostname The hostname which can be found at the given address. + * The caller is free to overwrite or free this string + * once meshlink returns. + * @param addr The IP address and port which should be tried for the + * given hostname. The caller is free to overwrite or free + * this memory once meshlink returns. + */ +extern void meshlink_hint_address(meshlink_handle_t *mesh, char *hostname, struct sockaddr *addr); + #ifdef __cplusplus } #endif