docs: def get_title(src_name, src_type=None):
      """Normalizes a source name as a string to be used for viewer's title."""
      if src_type == 'tcp':
          return '{0}:{1}'.format(*src_name)
      return os.path.basename(src_name)