Changeset 2014:6646d9a2113a in roaraudio for libroar/slp.c
- Timestamp:
- 06/16/09 13:26:54 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/slp.c
r2013 r2014 136 136 137 137 138 char * roar_slp_find_roard ( void) {138 char * roar_slp_find_roard (int nocache) { 139 139 static char addr[80]; 140 140 141 if ( roar_slp_find_roard_r(addr, 80 ) == -1 )141 if ( roar_slp_find_roard_r(addr, 80, nocache) == -1 ) 142 142 return NULL; 143 143 … … 145 145 } 146 146 147 int roar_slp_find_roard_r (char * addr, size_t len ) {147 int roar_slp_find_roard_r (char * addr, size_t len, int nocache) { 148 148 static struct roar_slp_match cache = {"", 0}; 149 149 struct roar_slp_cookie cookie; … … 158 158 *addr = 0; // just in case... 159 159 160 if ( cache.tod < time(NULL) ) { 160 if ( nocache || cache.tod < time(NULL) ) { 161 if ( nocache ) { 162 ROAR_WARN("roar_slp_find_roard_r(*): forced ignoring of cache, doing a new lookup."); 163 } 161 164 ROAR_WARN("roar_slp_find_roard_r(*): cache too old, searching for a new server..."); 162 165 ROAR_DBG("roar_slp_find_roard_r(*) = ?");
Note: See TracChangeset
for help on using the changeset viewer.