Changeset 532:04a8638512ec in roaraudio


Ignore:
Timestamp:
08/16/08 16:26:57 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use SO_REUSEADDR for temp DECnet sockets, too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/simple.c

    r526 r532  
    114114  port = ROAR_NET2HOST16(socket_addr.sin_port); 
    115115  ROAR_DBG("roar_simple_new_stream_obj(*): port=%i", port); 
    116  } 
    117  
    118  if ( type == ROAR_SOCKET_TYPE_UNIX ) { 
     116 } else if ( type == ROAR_SOCKET_TYPE_UNIX ) { 
    119117  chmod(file, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP); 
    120118 
     
    123121  if ( grp ) 
    124122   chown(file, -1, grp->gr_gid); 
     123 } else if ( type == ROAR_SOCKET_TYPE_DECNET ) { 
     124  len = sizeof(struct sockaddr_in); 
     125  setsockopt(listen, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(int)); 
    125126 } 
    126127 
Note: See TracChangeset for help on using the changeset viewer.