X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmeshlink%2B%2B.h;h=8287e0382632777df5d4c0f1a7e59d4c398259ad;hb=7075cf7bc81998b6cf72ccb6748050cd40b006be;hp=48eabf3fbf5fdf80cfb3586c6a5001e808a7e208;hpb=dfb34b95e3ba8e98b13566745b24dc2beb1cab7b;p=meshlink diff --git a/src/meshlink++.h b/src/meshlink++.h index 48eabf3f..8287e038 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -533,7 +533,9 @@ public: * If the port is set to 0, then MeshLink will listen on a port * that is randomly assigned by the operating system every time open() is called. * - * @return This function returns true if the port was successfully changed, false otherwise. + * @return This function returns true if the port was successfully changed + * to the desired port, false otherwise. If it returns false, there + * is no guarantee that MeshLink is listening on the old port. */ bool set_port(int port) { return meshlink_set_port(handle, port);