'Called when connection is first established.'

def connectionMade(self):

    self.cid = idcounter()
    self.key = ('Dummy-%s' % self.cid)
    self.gid = ('%s-%s' % (time.strftime(DATESTRING), self.cid))
    self.istep = 0
    self.exits = []
    self.objs = []
    self._connected = False
    self._loggedin = False
    self._logging_out = False
    self._report = ''
    self._cmdlist = []
    self._login = self.factory.actions[0]
    self._logout = self.factory.actions[1]
    self._actions = self.factory.actions[2:]
    reactor.addSystemEventTrigger('before', 'shutdown', self.logout)
