Changeset 759:be1544e081ad in roaraudio for libroar
- Timestamp:
- 09/05/08 04:47:19 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/socket.c
r754 r759 220 220 char localmes[1] = {0}; 221 221 222 ROAR_DBG("roar_socket_send_fh(sock=%i, fh=%i, mes=%p, len=%u) = ?", sock, fh, mes, len); 223 222 224 if ( sock < 0 || fh < 0 ) 223 225 return -1; -
libroar/stream.c
r758 r759 157 157 m.stream = s->id; 158 158 m.pos = 0; 159 160 if ( roar_send_message(con, &m, NULL) == -1 ) 161 return -1; 159 m.datalen = 0; 160 161 ROAR_DBG("roar_stream_passfh(con={.fh=%i,...}, s={.id=%i,...}, fh=%i) = ?", con->fh, s->id, fh); 162 163 if ( roar_send_message(con, &m, NULL) == -1 ) { 164 ROAR_DBG("roar_stream_passfh(con={.fh=%i,...}, s={.id=%i,...}, fh=%i) = -1 // can not send message", con->fh, s->id, fh); 165 return -1; 166 } 167 168 ROAR_DBG("roar_stream_passfh(*): msg send"); 162 169 163 170 if ( roar_socket_send_fh(con->fh, fh, NULL, 0) == -1 ) 164 171 return -1; 165 172 173 ROAR_DBG("roar_stream_passfh(*): fh send"); 174 166 175 if ( roar_recv_message(con, &m, NULL) == -1 ) 167 176 return -1; 177 178 ROAR_DBG("roar_stream_passfh(*): mes recved"); 168 179 169 180 return 0;
Note: See TracChangeset
for help on using the changeset viewer.