Changeset 1187:b801908abee4 in roaraudio for libroar/simple.c


Ignore:
Timestamp:
02/02/09 20:18:34 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

some cleenup and updated the (c)-notice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/simple.c

    r1178 r1187  
    22 
    33/* 
    4  *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008 
     4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008, 2009 
    55 * 
    66 *  This file is part of libroar a part of RoarAudio, 
     
    123123 int fh = -1, listen = -1; 
    124124 static int count = 0; 
    125 // struct group   * grp  = NULL; 
    126125 int    type = ROAR_SOCKET_TYPE_UNIX; 
    127126 int    port = 0; 
     
    155154 } 
    156155 
    157 /* 
    158  if ( type == ROAR_SOCKET_TYPE_UNIX ) { 
    159   snprintf(file, 79, "/tmp/.libroar-simple-stream.%i-%i", getpid(), count++); 
    160  } else */ if ( type == ROAR_SOCKET_TYPE_DECNET ) { 
     156 if ( type == ROAR_SOCKET_TYPE_DECNET ) { 
    161157  if ( roar_socket_get_local_nodename() ) { 
    162158   snprintf(file, 24,"%s::roar$TMP%04x%02x", roar_socket_get_local_nodename(), getpid(), count++); 
     
    183179  port = ROAR_NET2HOST16(socket_addr.sin_port); 
    184180  ROAR_DBG("roar_simple_new_stream_obj(*): port=%i", port); 
    185 /* 
    186 #if 0 
    187  } else if ( type == ROAR_SOCKET_TYPE_UNIX ) { 
    188 #ifndef ROAR_TARGET_WIN32 
    189   chmod(file, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP); 
    190  
    191   grp = getgrnam(ROAR_DEFAULT_SOCKGRP); 
    192  
    193   if ( grp ) 
    194    chown(file, -1, grp->gr_gid); 
    195 #else 
    196   ROAR_ERR("roar_simple_new_stream_obj(*): There is no UNIX Domain Socket support in win32, download a real OS."); 
    197 #endif 
    198 #endif 
    199 */ 
    200181 } else if ( type == ROAR_SOCKET_TYPE_DECNET ) { 
    201182  len = sizeof(struct sockaddr_in); 
Note: See TracChangeset for help on using the changeset viewer.