Ejemplo n.º 1
0
 public static lhNetwork GetInstance()
 {
     if (m_instance != null)
     {
         return(null);
     }
     return(m_instance = new lhNetwork());
 }
Ejemplo n.º 2
0
 public void Dispose()
 {
     if (m_socketConnect != null)
     {
         m_socketConnect.Close();
         m_socketConnect = null;
     }
     m_instance = null;
 }
Ejemplo n.º 3
0
 static int GetInstance(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LaoHan.Network.lhNetwork        arg0 = (LaoHan.Network.lhNetwork)ToLua.CheckObject(L, 1, typeof(LaoHan.Network.lhNetwork));
         LaoHan.Control.lhControlNetwork o    = LaoHan.Control.lhControlNetwork.GetInstance(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }