static public int Disconnect(IntPtr l) { try { NetMgr self = (NetMgr)checkSelf(l); self.Disconnect(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }