Changeset 799:ff4c12152444 in roaraudio for libroaryiff
- Timestamp:
- 09/17/08 04:04:17 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaryiff/events.c
r795 r799 30 30 struct roar_connection rcon; 31 31 struct roar_stream s; 32 struct roar_message m;33 32 34 33 if ( con == NULL || event == NULL ) … … 40 39 if ( roar_get_stream(&rcon, &s, ROARYIFF_YID2ROAR(con->prev_generated_yid)) == -1 ) { 41 40 // ok, we know something happened. 42 // next we try to seend a noop to see of the server is still alive 43 m.cmd = ROAR_CMD_NOOP; 44 m.datalen = 0; 45 46 if ( roar_req(&rcon, &m, NULL) == -1 ) { 41 if ( roar_errno == ROAR_ERROR_PROTO ) { 47 42 // the server died 48 43 event->type = YDisconnect;
Note: See TracChangeset
for help on using the changeset viewer.