'see if dest ip and/or port is in target list and (if a source list)
source ip is in source list
if so, put the connection in the tracked-session list by dest ip
if a new connection to the target comes in from an allowed source,
the existing connection will still be tracked'

def connectionInitHandler(self, conn):

    ((sip, sport), (dip, dport)) = conn.addr
    (sport, dport) = (str(sport), str(dport))
    if (((dip, dport) in self.targets) or ((dip, None) in self.targets) or ((None, dport) in self.targets)):
        if ((not self.sources) or (sip in self.sources)):
            s = self.sessions.setdefault(dip, {})
            s[conn.addr] = conn
            if self.alerts:
                self.alert('session    started', **conn.info())
            conn.info(sessionpackets=0, sessionbytes=0)
