Changeset 1187:b801908abee4 in roaraudio for libroar/simple.c
- Timestamp:
- 02/02/09 20:18:34 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r1178 r1187 2 2 3 3 /* 4 * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008 4 * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008, 2009 5 5 * 6 6 * This file is part of libroar a part of RoarAudio, … … 123 123 int fh = -1, listen = -1; 124 124 static int count = 0; 125 // struct group * grp = NULL;126 125 int type = ROAR_SOCKET_TYPE_UNIX; 127 126 int port = 0; … … 155 154 } 156 155 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 ) { 161 157 if ( roar_socket_get_local_nodename() ) { 162 158 snprintf(file, 24,"%s::roar$TMP%04x%02x", roar_socket_get_local_nodename(), getpid(), count++); … … 183 179 port = ROAR_NET2HOST16(socket_addr.sin_port); 184 180 ROAR_DBG("roar_simple_new_stream_obj(*): port=%i", port); 185 /*186 #if 0187 } else if ( type == ROAR_SOCKET_TYPE_UNIX ) {188 #ifndef ROAR_TARGET_WIN32189 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 #else196 ROAR_ERR("roar_simple_new_stream_obj(*): There is no UNIX Domain Socket support in win32, download a real OS.");197 #endif198 #endif199 */200 181 } else if ( type == ROAR_SOCKET_TYPE_DECNET ) { 201 182 len = sizeof(struct sockaddr_in);
Note: See TracChangeset
for help on using the changeset viewer.