Changeset 3128:949cdc22e981 in roaraudio
- Timestamp:
- 01/14/10 09:32:35 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/roard.h
r3056 r3128 135 135 #ifdef ROAR_SUPPORT_LISTEN 136 136 int g_listen_socket[ROAR_MAX_LISTEN_SOCKETS]; 137 int g_listen_proto[ROAR_MAX_LISTEN_SOCKETS]; 137 //int g_listen_proto[ROAR_MAX_LISTEN_SOCKETS]; 138 struct { 139 int socket; 140 int proto; 141 union { 142 void * vp; 143 int si; 144 struct { 145 int dir; 146 struct roar_audio_info info; 147 } stpl; 148 } inst; 149 } g_listen[ROAR_MAX_LISTEN_SOCKETS]; 138 150 #endif 139 151 -
roard/network.c
r2820 r3128 65 65 if ( g_listen_socket[i] != -1 ) { 66 66 if ( FD_ISSET(g_listen_socket[i], &sl) ) { 67 if ( net_get_new_client(g_listen_socket[i], g_listen _proto[i]) == -1 )67 if ( net_get_new_client(g_listen_socket[i], g_listen[i].proto) == -1 ) 68 68 return -1; 69 69 } -
roard/roard.c
r3127 r3128 269 269 int i; 270 270 271 memset(g_listen, 0, sizeof(g_listen)); 272 271 273 for (i = 0; i < ROAR_MAX_LISTEN_SOCKETS; i++) { 272 274 g_listen_socket[i] = -1; 273 g_listen _proto[i]= ROAR_PROTO_ROARAUDIO;275 g_listen[i].proto = ROAR_PROTO_ROARAUDIO; 274 276 server[i] = NULL; 275 277 } … … 303 305 return -1; 304 306 305 g_listen _proto[sockid]= proto;307 g_listen[sockid].proto = proto; 306 308 307 309 ROAR_DBG("add_listen(*): proto=0x%.4x", proto);
Note: See TracChangeset
for help on using the changeset viewer.