private void CloseConfig()
 {
     reader.Stop();
     reader.Close();
     sink.Disconnect();
     writer.EndWriting();
 }
Exemple #2
0
        private void TestMisc()
        {
            StringBuilder sb    = null;
            int           iLen  = 0;
            int           iPort = 1011;

            m_pSink.Open(ref iPort);

            m_pSink.GetHostURL(sb, ref iLen);
            sb = new StringBuilder(iLen);
            m_pSink.GetHostURL(sb, ref iLen);

            Debug.Assert(sb.ToString().Contains(iPort.ToString()));

            m_pSink.Disconnect();
            m_pSink.Close();
        }