Changeset 4806:988c888752c2 in roaraudio for libroar/simple.c


Ignore:
Timestamp:
03/25/11 03:40:16 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Started with support for non-blocking server locating attempts.
Speed up SLP lookup without DA by about 6 sec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/simple.c

    r4708 r4806  
    3737 
    3838int roar_simple_connect (struct roar_connection * con, char * server, char * name) { 
     39 return roar_simple_connect2(con, server, name, 0, 0); 
     40} 
     41 
     42int roar_simple_connect2(struct roar_connection * con, char * server, char * name, int flags, uint_least32_t timeout) { 
    3943 
    4044 ROAR_DBG("roar_simple_connect(*): trying to connect..."); 
    4145 
    42  if ( roar_connect(con, server) == -1 ) { 
     46 if ( roar_connect2(con, server, flags, timeout) == -1 ) { 
    4347  ROAR_DBG("roar_simple_connect(*): roar_connect() faild!"); 
    4448  return -1; 
Note: See TracChangeset for help on using the changeset viewer.