def client_info_callback(source_port, dest_ip, dest_port):
 try:
  proc = pyblame.util.find_connection_owner((None, source_port), (dest_ip, dest_port), relaxed=True)
  if (psutil.version_info[0] < 2):
   cmdline = proc.cmdline
  else:
   cmdline = proc.cmdline()
  cmd = ' '.join(cmdline[:2])
  logger.info(('Blame request for %s=>%s:%s owner:%s command:%s' % (source_port, dest_ip, dest_port, proc.pid, cmd)))
  return [pyblame.blame.Application(cmd, 0)]
 except ValueError:
  logger.info(('Blame request for %s=>%s:%s unknown' % (source_port, dest_ip, dest_port)))
 return None

def client_info_callback ( source_port , dest_ip , dest_port ) : try : proc = pyblame . util . find_connection_owner ( ( None , source_port ) , ( dest_ip , dest_port ) , relaxed = True ) if ( psutil . version_info [ 0 ] < 2 ) : cmdline = proc . cmdline else : cmdline = proc . cmdline ( ) cmd = ' ' . join ( cmdline [ : 2 ] ) logger . info ( ( 'Blame request for %s=>%s:%s owner:%s command:%s' % ( source_port , dest_ip , dest_port , proc . pid , cmd ) ) ) return [ pyblame . blame . Application ( cmd , 0 ) ] except ValueError : logger . info ( ( 'Blame request for %s=>%s:%s unknown' % ( source_port , dest_ip , dest_port ) ) ) return None
called when client information is requested .