Changeset 4057:dcef746274cf in roaraudio


Ignore:
Timestamp:
07/15/10 19:55:13 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added more networ consts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/roaraudio.h

    r4054 r4057  
    147147#include <libroar/libroar.h> 
    148148 
     149// Some glocal network defaults: 
     150#ifndef ROAR_NET_INET4_LOCALHOST 
     151#define ROAR_NET_INET4_LOCALHOST "localhost" 
     152#endif 
     153#ifndef ROAR_NET_INET4_ANYHOST 
     154#define ROAR_NET_INET4_ANYHOST   "0.0.0.0" 
     155#endif 
     156 
     157#ifndef ROAR_NET_INET6_LOCALHOST 
     158#define ROAR_NET_INET6_LOCALHOST "ipv6-localhost" 
     159#endif 
     160#ifndef ROAR_NET_INET6_ANYHOST 
     161#define ROAR_NET_INET6_ANYHOST   "::" 
     162#endif 
     163 
    149164// IP: 
    150165#define ROAR_DEFAULT_PORT        16002 
     
    152167// IPv4 
    153168#define ROAR_DEFAULT_INET4_PORT  ROAR_DEFAULT_PORT 
    154 #define ROAR_DEFAULT_INET4_HOST  "localhost" 
     169#define ROAR_DEFAULT_INET4_HOST  ROAR_NET_INET4_LOCALHOST 
    155170// aliases: 
    156171#define ROAR_DEFAULT_HOST        ROAR_DEFAULT_INET4_HOST 
     
    158173// IPv6: 
    159174#define ROAR_DEFAULT_INET6_PORT  ROAR_DEFAULT_PORT 
    160 #define ROAR_DEFAULT_INET6_HOST  "ipv6-localhost" 
     175#define ROAR_DEFAULT_INET6_HOST  ROAR_NET_INET6_LOCALHOST 
    161176 
    162177// UNIX Domain Sockets 
     
    169184#define ROAR_DEFAULT_LISTEN_OBJECT "::" ROAR_DEFAULT_OBJECT 
    170185 
    171 // now handled by condiguere 
     186// now handled by configure: 
    172187//#define ROAR_DEFAULT_SOCKGRP     "audio" 
     188 
     189 
     190// defines for emulations: 
     191// ESD: 
     192#define ROAR_DEFAULT_ESD_GSOCK   "/tmp/.esd/socket" 
     193#define ROAR_DEFAULT_ESD_PORT    16001 
     194// RSound: 
     195#define ROAR_DEFAULT_RSOUND_GSOCK  "/tmp/rsound" 
     196#define ROAR_DEFAULT_RSOUND_PORT   12345 
     197#define ROAR_DEFAULT_RSOUND_OBJECT "::rsound" 
     198// PulseAudio: 
     199#define ROAR_DEFAULT_PA_PORT     4712 
     200// RPlay: 
     201#define ROAR_DEFAULT_RPLAY_PORT  5556 
    173202 
    174203#if defined(ROAR_HAVE_LIBWSOCK32) && defined(ROAR_HAVE_LIBWS2_32) 
Note: See TracChangeset for help on using the changeset viewer.