Changeset 1465:f6abf97c2fce in roaraudio
- Timestamp:
- 03/29/09 22:20:56 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r1396 r1465 119 119 120 120 int roar_simple_new_stream_obj (struct roar_connection * con, struct roar_stream * s, int rate, int channels, int bits, int codec, int dir) { 121 struct roar_message mes;122 121 char file[80] = {0}; 123 122 int fh = -1, listen = -1; … … 130 129 struct sockaddr_in socket_addr; 131 130 socklen_t len = sizeof(struct sockaddr_in); 131 #ifdef ROAR_HAVE_SELECT 132 132 fd_set fds; 133 133 struct timeval timeout = {10, 0}; 134 struct roar_message mes; 135 #endif 134 136 #ifdef ROAR_HAVE_UNIX 135 137 int socks[2]; // for socketpair() … … 213 215 214 216 if ( type != ROAR_SOCKET_TYPE_UNIX ) { 217 #ifdef ROAR_HAVE_SELECT 215 218 if ( roar_stream_connect_to_ask(con, s, type, file, port) != -1 ) { 216 219 … … 244 247 245 248 close(listen); 249 #else 250 return -1; 251 #endif 246 252 } else { // this is type == ROAR_SOCKET_TYPE_UNIX 247 253 #ifdef ROAR_HAVE_UNIX
Note: See TracChangeset
for help on using the changeset viewer.