Changeset 1087:4d0c609b456d in roaraudio for libroar/socket.c


Ignore:
Timestamp:
12/28/08 19:40:08 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to disale proxy code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r1085 r1087  
    342342  return roar_socket_open(MODE_CONNECT, ROAR_SOCKET_TYPE_UNKNOWN, host, port); 
    343343 } else { 
     344#ifdef ROAR_SUPPORT_PROXY 
    344345  return roar_socket_open_proxy(MODE_CONNECT, ROAR_SOCKET_TYPE_UNKNOWN, host, port, proxy_type); 
     346#else 
     347  ROAR_ERR("roar_socket_connect(host='%s', port=%i): no support for proxy code (proxy_type=%s)", host, port, proxy_type); 
     348  return -1; 
     349#endif 
    345350 } 
    346351} 
     
    645650// generic proxy code: 
    646651 
     652#ifdef ROAR_SUPPORT_PROXY 
    647653int roar_socket_open_proxy (int mode, int type, char * host, int port, char * proxy_type) { 
    648654 int    proxy_port = -1; 
     
    969975#endif 
    970976 
     977#endif // ROAR_SUPPORT_PROXY 
     978 
    971979//ll 
Note: See TracChangeset for help on using the changeset viewer.