Changeset 82:395b9657ca85 in roaraudio for libroar/stream.c
- Timestamp:
- 07/12/08 18:49:34 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/stream.c
r81 r82 75 75 int roar_stream_connect_to (struct roar_connection * con, struct roar_stream * s, int type, char * host, int port) { 76 76 struct roar_message m; 77 78 if ( roar_stream_connect_to_ask(con, s, type, host, port) == -1 ) 79 return -1; 80 81 if ( roar_recv_message(con, &m, NULL) == -1 ) 82 return -1; 83 84 if ( m.cmd == ROAR_CMD_OK ) 85 return 0; 86 return -1; 87 } 88 89 int roar_stream_connect_to_ask (struct roar_connection * con, struct roar_stream * s, int type, char * host, int port) { 90 struct roar_message m; 77 91 int len = 0; 78 92 … … 97 111 m.datalen = len + 4; 98 112 99 if ( roar_ req(con, &m, NULL) == -1 )113 if ( roar_send_message(con, &m, NULL) == -1 ) 100 114 return -1; 101 115 102 if ( m.cmd == ROAR_CMD_OK ) 103 return 0; 104 return -1; 116 return 0; 105 117 } 106 118
Note: See TracChangeset
for help on using the changeset viewer.