def arbitrary_address(family):
 if (family == 'AF_INET'):
  return ('localhost', 0)
 elif (family == 'AF_UNIX'):
  return tempfile.mktemp(prefix='listener-', dir=get_temp_dir())
 elif (family == 'AF_PIPE'):
  return tempfile.mktemp(prefix=('\\\\.\\pipe\\pyc-%d-%d-' % (os.getpid(), _mmap_counter.next())), dir='')
 else:
  raise ValueError('unrecognized family')

def arbitrary_address ( family ) : if ( family == 'AF_INET' ) : return ( 'localhost' , 0 ) elif ( family == 'AF_UNIX' ) : return tempfile . mktemp ( prefix = 'listener-' , dir = get_temp_dir ( ) ) elif ( family == 'AF_PIPE' ) : return tempfile . mktemp ( prefix = ( '\\\\.\\pipe\\pyc-%d-%d-' % ( os . getpid ( ) , _mmap_counter . next ( ) ) ) , dir = '' ) else : raise ValueError ( 'unrecognized family' )
return an arbitrary free address for the given family .