Changeset 501:985357040570 in roaraudio for roard


Ignore:
Timestamp:
08/14/08 17:51:30 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

ha! It's working: RoarAudio via DECnet! :), needs cleanup

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r498 r501  
    9595 
    9696int clients_set_fh    (int id, int    fh) { 
     97#ifdef ROAR_HAVE_LIBDNET 
     98 struct sockaddr_dn sockaddr_d; 
     99 socklen_t len = sizeof(struct sockaddr_dn); 
     100#endif 
     101 
    97102 if ( g_clients[id] == NULL ) 
    98103  return -1; 
    99104 
    100105 g_clients[id]->fh = fh; 
     106 
     107#ifdef ROAR_HAVE_LIBDNET 
     108 if ( getsockname(fh, (struct sockaddr *)&sockaddr_d, &len) != -1 ) { 
     109  if ( sockaddr_d.sdn_family == AF_DECnet ) 
     110   roar_socket_nonblock(fh, ROAR_SOCKET_BLOCK); 
     111 } 
     112#endif 
    101113 
    102114 return 0; 
  • roard/roard.c

    r450 r501  
    5555        " --no-listen           - Do not listen for new clients (only usefull for relaing)\n" 
    5656        " --client-fh           - Comunicate with a client over this handle\n" 
    57         "                         (only usefull for relaing)\n", 
     57        "                         (only usefull for relaing)\n" 
     58        " --close-fh            - Closes the given fh\n", 
    5859        ROAR_DEFAULT_SOCKGRP 
    5960       ); 
     
    228229    return 1; 
    229230   } 
     231  } else if ( strcmp(k, "--close-fh") == 0 ) { 
     232   close(atoi(argv[++i])); 
    230233 
    231234  } else { 
Note: See TracChangeset for help on using the changeset viewer.