#includeIn this example, we first instantiate the YARP network and a searchable object. We then set the "name" attribute of the searchable object to "/myPort". We pass the searchable object to the check() method of the searchable class, which returns true if a port with the specified name is available on the network. The yarp.os searchable check is part of the YARP libraries in C++, specifically the yarp-os package library.#include int main() { yarp::os::Network yarp; yarp::os::Searchable search; search.put("name", "/myPort"); if(yarp::os::Searchable::check(search)) { std::cout << "Found port /myPort!" << std::endl; } else { std::cout << "Could not find port /myPort." << std::endl; } return 0; }