Esempio n. 1
0
        /* --- Static Methods (Interface) --- */
        public static bool Connect(string name)
        {
            if (s_instance != null)
            {
                s_instance.SendDebugMessage("ERROR: tried to connect with an already open HSMPClient...");
                return(false);
            }
            ClientMessageStream s = ClientMessageStream.Create(name);

            if (s == null)
            {
                return(false);
            }
            s_instance = new HSMPClient(s);
            return(true);
        }
Esempio n. 2
0
 /* --- Constructors --- */
 private HSMPClient(ClientMessageStream s)
 {
     m_stream = s;
 }