Changeset 5739:2a1671d592b9 in roaraudio for roard/clients.c
- Timestamp:
- 11/09/12 01:09:22 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/clients.c
r5654 r5739 33 33 struct roar_client_server * g_clients[ROAR_CLIENTS_MAX]; 34 34 35 static struct roar_dl_proto 36 #if !defined(ROAR_WITHOUT_DCOMP_EMUL_ESD) && defined(ROAR_HAVE_H_ESD) 37 __proto_common_esd = { 38 .proto = ROAR_PROTO_ESOUND, 39 .description = "EsounD emulation", 40 .flags = ROAR_DL_PROTO_FLAGS_NONE, 41 .handle = emul_esd_check_client 42 }, 43 #endif 44 #ifndef ROAR_WITHOUT_DCOMP_EMUL_RPLAY 45 __proto_common_rplay = { 46 .proto = ROAR_PROTO_RPLAY, 47 .description = "RPlay emulation", 48 .flags = ROAR_DL_PROTO_FLAGS_NONE, 49 .handle = emul_rplay_check_client 50 }, 51 #endif 52 #ifndef ROAR_WITHOUT_DCOMP_EMUL_GOPHER 53 __proto_common_gopher = { 54 .proto = ROAR_PROTO_GOPHER, 55 .description = "The Internet Gopher Protocol", 56 .flags = ROAR_DL_PROTO_FLAGS_NONE, 57 .handle = emul_gopher_check_client, 58 .flushed = emul_gopher_flushed_client 59 } 60 #endif 61 ; 35 extern struct roar_dl_proto __proto_common_rplay; 36 extern struct roar_dl_proto __proto_common_gopher; 37 extern struct roar_dl_proto __proto_common_esd; 62 38 63 39 static struct roard_proto_handle __protos[MAX_PROTOS] = { … … 252 228 // nothing needed to be done here 253 229 break; 254 #ifndef ROAR_WITHOUT_DCOMP_EMUL_ESD255 #ifdef ROAR_HAVE_H_ESD256 case ROAR_PROTO_ESOUND:257 ROAR_DBG("net_get_new_client(*): execing ESD CONNECT command");258 259 if ( roar_vio_open_fh_socket(&vio, fh) == -1 )260 return -1;261 262 ROAR_DBG("net_get_new_client(*): creating VIO OK");263 264 if ( emul_esd_exec_command(client, ESD_PROTO_CONNECT, &vio) == -1 )265 return -1;266 267 ROAR_DBG("net_get_new_client(*): CONNECT execed sucessfully");268 break;269 #endif270 #endif271 230 #ifndef ROAR_WITHOUT_DCOMP_EMUL_SIMPLE 272 231 case ROAR_PROTO_SIMPLE: … … 277 236 #ifndef ROAR_WITHOUT_DCOMP_EMUL_RSOUND 278 237 case ROAR_PROTO_RSOUND: // nothing to do here. 279 break;280 #endif281 #ifndef ROAR_WITHOUT_DCOMP_EMUL_RPLAY282 case ROAR_PROTO_RPLAY:283 if ( roar_vio_open_fh_socket(&vio, fh) == -1 )284 return -1;285 286 if ( emul_rplay_on_status(client, NULL, &vio, NULL, 0) == -1 )287 return -1;288 238 break; 289 239 #endif
Note: See TracChangeset
for help on using the changeset viewer.