/* PUBLIC METHODS: */ public Session( Configuration config_, AnswerCallback answerCallback_) { m_config = config_; m_serializer = new Serializer(m_config.schemadir, m_config.schemaext); m_connection = new Connection( m_config); m_lasterror = null; m_state = State.Init; m_stateLock = new object(); m_requestqueue = new WorkQueue<Request>('R'); m_pendingqueue = new WorkQueue<PendingRequest>('A'); m_answerCallback = answerCallback_; m_request_thread = null; m_answer_thread = null; }