Changeset 508:1129ff87dd1e in roaraudio for roard/roard.c
- Timestamp:
- 08/15/08 00:40:31 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r501 r508 46 46 printf(" -t --tcp - Use TCP listen socket\n" 47 47 " -u --unix - Use UNIX Domain listen socket (default)\n" 48 #ifdef ROAR_HAVE_LIBDNET 49 " -n --decnet - use DECnet listen socket\n" 50 #endif 48 51 " -p --port - TCP Port to bind to\n" 49 52 " -b --bind - IP/Hostname to bind to\n" … … 92 95 DRIVER_USERDATA_T drvinst; 93 96 struct roar_client * self = NULL; 97 #ifdef ROAR_HAVE_LIBDNET 98 char decnethost[80]; 99 #endif 94 100 95 101 g_listen_socket = -1; … … 217 223 } else if ( strcmp(k, "-u") == 0 ) { 218 224 // ignore this case as it is the default behavor. 225 } else if ( strcmp(k, "-n") == 0 ) { 226 #ifdef ROAR_HAVE_LIBDNET 227 port = ROAR_DEFAULT_NUM; 228 strcpy(decnethost, ROAR_DEFAULT_LISTEN_OBJECT); 229 server = decnethost; 230 #else 231 ROAR_ERR("No DECnet support compiled in!"); 232 return 1; 233 #endif 219 234 } else if ( strcmp(k, "-G") == 0 ) { 220 235 sock_grp = argv[++i];
Note: See TracChangeset
for help on using the changeset viewer.