src/common/snmp/protocol.cpp
const sock::RouteInfo Protocol::getRouteInfo(const std::string& sockname)
{
    if (*(sockname.begin()) != '/')
    {
        return sock::RouteInfo("/tmp/" + sockname, 0,
                              sock::UNIXDOMAIN, sock::UNICAST);
    }

    return sock::RouteInfo(sockname, 0,
                           sock::UNIXDOMAIN, sock::UNICAST);
}
// Retrives real path from socket name
Retrives real path from socket name
Retrives real path from socket name
const sock::RouteInfo Protocol::getRouteInfo(const std::string& sockname)
{
    if (*(sockname.begin()) != '/')
    {
        return sock::RouteInfo("/tmp/" + sockname, 0,
                              sock::UNIXDOMAIN, sock::UNICAST);
    }
    return sock::RouteInfo(sockname, 0,
                           sock::UNIXDOMAIN, sock::UNICAST);
}
const sock :: RouteInfo Protocol :: getRouteInfo ( const std :: string & sockname ) { if ( * ( sockname . begin ( ) ) != ' ' ) { return sock :: RouteInfo ( " " + sockname , 0 , sock :: UNIXDOMAIN , sock :: UNICAST ) ; } return sock :: RouteInfo ( sockname , 0 , sock :: UNIXDOMAIN , sock :: UNICAST ) ; }
Retrives real path from socket name
Retrives real path from socket name