'Handler for registering in dispatcher for accepting transport authentication.'

def handshakeHandler(self, disp, stanza):

    if (stanza.getName() == 'handshake'):
        self.handshake = 1
    else:
        self.handshake = (-1)
